33 Commits

Author SHA1 Message Date
mutouyun
ac54be7083 reconnect cannot reconnect when you are out of authority 2023-10-28 16:44:16 +08:00
mutouyun
cf72d0293a The global sender could not be obtained due to different prefixes. 2023-10-28 16:44:16 +08:00
mutouyun
bbd063f965 调整空白格式 2023-10-28 16:44:16 +08:00
mutouyun
0814438c35 调整注释 2023-10-28 16:44:16 +08:00
mutouyun
22a253a72f Supplement similar demo under linux. 2023-10-28 16:44:16 +08:00
mutouyun
e229f78a15 Windows services can communicate with common processes. 2023-10-28 16:44:16 +08:00
mutouyun
a457a8975f using 'signal' to quit waiting explicitly 2021-09-21 13:09:59 +08:00
mutouyun
68590dd2f3 commit new demo 2021-09-19 16:14:48 +08:00
mutouyun
91385d727a 修正recv中断后counter无法下降的问题;添加新的示例 2021-09-17 22:01:34 +08:00
mutouyun
3c7e94a167 modify cmakelists options 2021-08-15 13:23:43 +08:00
winsoft666
43179d6ea0 Add USE_STATIC_CRT option to support static CRT(/MT). 2021-07-30 17:50:02 +08:00
mutouyun
7bedfbfb5b fix: large message cache may not be recycled with multiple receivers 2021-07-11 13:11:24 +08:00
mutouyun
f07fc84cb8 add options for cmake 2021-06-05 18:39:31 +08:00
mutouyun
d3ec4714bd 调整signal 2021-01-03 13:24:08 +08:00
mutouyun
6163618433 针对不同类型的策略,增加不同的sender/receiver个数检查。
- is_multi_producer:sender无限制;否则仅允许一个
 - is_multi_consumer:receiver个数上限依赖is_broadcast指定;否则仅允许一个
 - is_broadcast:receiver个数上限为32(uint_t<32>位数);否则无限制(uint_t<32>大小)

行为变更:
1. 在连接时根据模式检查sender/receiver是否超出上限,超出则返回false
2. 在send时确认是否允许发送(对receiver模式来说,send之前不会尝试确认sender个数)
3. 修正若干bug
2021-01-03 12:52:03 +08:00
mutouyun
9655db2e3a warning C4267 2020-09-26 19:30:41 +08:00
mutouyun
10cc2d3360 修正:disconnect不会自动退出wait_for_recv 2020-09-26 19:17:25 +08:00
mutouyun
32f88c8353 微调 2020-09-20 15:30:19 +08:00
mutouyun
8a13571312 调整打印输出 2020-09-20 15:00:24 +08:00
mutouyun
2255ae685a 调整接口;添加 msg_que demo 2020-09-20 14:55:47 +08:00
mutouyun
7545e17084 简化接口 2020-09-20 12:20:55 +08:00
mutouyun
e51855f1df 调整代码结构 2020-09-20 11:43:27 +08:00
mutouyun
aaf67858c2 for linux 2020-09-19 18:41:33 +08:00
mutouyun
bce3894707 添加正常退出的机制(win) 2020-09-19 17:37:33 +08:00
mutouyun
523d38d247 调整目录结构,隔离include路径,修正tls在win下的问题 2020-09-13 17:29:14 +08:00
mutouyun
326bc10b2d 优化ut,修正tls中的bug 2020-09-13 15:06:47 +08:00
mutouyun
e8b339d25b 使用 gtest 替换 qtest,测试不再依赖 qt 2020-09-06 21:33:15 +08:00
zhangyi
3eeeec88a0 fix bugs of force_push; set PTHREAD_MUTEX_ROBUST to mutex in linux 2020-03-17 20:58:54 +08:00
mutouyun
17c0bc76c3 buffer::data<T>()->T* => buffer::get<T>()->T 2020-03-04 12:37:48 +08:00
zhangyi
5affd26da6 try send/recv; support sending timeout; fix bugs 2019-03-26 19:12:59 +08:00
mutouyun
75f5090d6a update chat 2019-02-13 18:19:28 +08:00
mutouyun
881f98c241 update chat 2019-02-13 17:11:01 +08:00
mutouyun
e88a4cf865 add demo-chat 2019-02-13 15:48:55 +08:00