On a server side, CRIU creates SOCK_SEQPACKET Unix socket and listens for connections on it. After receiving criu_req, CRIU processes it, do what is requested and sends response back.
+
On a server side, CRIU creates SOCK_SEQPACKET Unix socket and listens for connections on it. After receiving criu_req, CRIU processes it, do what is requested and sends criu_resp back.
To launch service server run:
To launch service server run:
Line 79:
Line 79:
=== Client ===
=== Client ===
−
Client, in its turn, must connect to service socket, send criu_msg with request in it, and wait for a criu_resp with response.
+
Client, in its turn, must connect to service socket, send criu_req with request in it, and wait for a criu_resp with response.
You can find examples of client programs in C and Python in test/rpc/.
You can find examples of client programs in C and Python in test/rpc/.