sdoa5335717
sdoa5335717
As the title, the detail is "remote_endpoint : Transport endpoint is not connected", then my program is abort,how to catch this exception and how to avoid this problem?
I have a class, like this: ``` class MyClass{ public: int value; MSGPACK_DEFINE_ARRAY(value) } ``` server: ``` int myfunction(MyClass& mc){ mc.value = 1; } int main(){ rpc::server svr(...); svr.bind("myfunction", myfunction);...
as the title
In function CS101_ASDU_addPayload, `if (self->payloadSize + self->asduHeaderLength + size asduHeaderLength + asdu->payloadSize;` `if (asduSize > 256 - IEC60870_5_104_APCI_LENGTH) ...` the max length is more little value 250, that IEC60870_5_104_APCI_LENGTH is...
我在使用客户端的过程中assert(f)被触发了,导致程序退出,应用场景如下 1, 客户端有一个不断向服务端发送数据的功能,可以理解为自定义心跳。 2, 当自定义心跳超时的时候,客户端主动关闭连接,然后调用connect再进行重连。 3, 问题就出现在当自定义心跳超时后,assert(f)有时候就会被触发,程序就退出了。 我理解的是因为close的调用,导致future_map_被清空了,auto &f = future_map_[req_id]的f为空。这里的assert(f)能否改成if(f) {f->set_value()}?
当服务进程被Kill之后,客户端不会触发自动重连,在write函数里,async_write的回调中的ec值是零,不会触发callback进行重连,这种情况怎么处理
例如 `struct person{ string name; int age; }; void test_person(person& per) { per.name = "aaa"; }` 请问这种情况是否支持? 在librpc中可以使用 person& test_person(person& per) { return per;}来完成