You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -211,15 +220,17 @@ Returns the error object that the server provided.
211
220
212
221
Implements amsgpack-rpc server. This is the main interfacing point with the library for creating servers.
213
222
214
-
The server maintains a registry of function bindings that it uses to dispatch calls. It also takes care of managing worker threads and TCP connections. The server does not start listening right after construction in order to allow binding functions before that. Use the `run` or `async_run` functions to start listening on the port.
223
+
The server maintains a registry of function bindings that it uses to dispatch calls. It also takes care of managing worker threads and TCP connections. The server does not start listening right after construction in order to allow binding functions before that. Use the `run` or `async_run` functions to start listening on the port. This class is not copyable, but moveable.
First and foremost, running the event loop causes the server to start listening on the specified port. Also, as connections are established and calls are made by clients, the server executes the calls as part of this call. This means that the handlers are executed on the thread that calls `run`. Reads and writes are initiated by this function
310
+
First and foremost, running the event loop causes the server to start listening on the specified port. Also, as connections are established and calls are made by clients, the server executes the calls as part of this call. This means that the handlers are executed on the thread that calls `run`. Reads and writes are initiated by this function internally as well.
This is not an ID for the client. If the client disconnects and reconnects, this ID may change. That being said, you can use this ID to store client-specific information *for the duration of the session.
528
+
480
529
481
530
## rpc::timeout
482
531
483
532
```cpp
484
-
#include ""
533
+
#include "rpc/rpc_error.h"
485
534
```
486
535
### Description
487
536
488
-
537
+
This exception is thrown by the client when either the connection or a call takes more time than it is set in set_timeout.
489
538
490
539
491
540
@@ -501,7 +550,7 @@ Gracefully exits the session (i.e. ongoing writes and reads are completed; queue
0 commit comments