Changes

3 bytes removed ,  19:48, 9 February 2019
m
Line 11: Line 11:  
|}
 
|}
   −
So compile it and run server
+
Compile it and run the server:
<pre>
+
 
# ./tcp-howto <some-port>
+
# ./tcp-howto <some-port>
</pre>
+
 
and on another terminal (for better output readability) -- the client
+
On another terminal (for better output readability) run the client:
<pre>
+
 
# ./tcp-howto 127.0.0.1 <some-port>
+
# ./tcp-howto 127.0.0.1 <some-port>
</pre>
      
== Try to dump the client ==
 
== Try to dump the client ==
 
Create a directory for images (<code>img-dir/</code> below) and dump the client
 
Create a directory for images (<code>img-dir/</code> below) and dump the client
 
<pre>
 
<pre>
# crtools dump --tree <tcp-howto-client-pid> --images-dir img-dir/ -v 4 -o dump.log --shell-job --tcp-established
+
# criu dump --tree <tcp-howto-client-pid> --images-dir img-dir/ -v4 -o dump.log --shell-job --tcp-established
 
</pre>
 
</pre>
   Line 33: Line 32:  
It's done like this
 
It's done like this
 
<pre>
 
<pre>
# crtools restore --tree <tcp-howto-client-pid> --images-dir img-dir/ -v 4 -o rst.log --shell-job --tcp-established
+
# criu restore --images-dir img-dir/ -v4 -o rst.log --shell-job --tcp-established
 
</pre>
 
</pre>
   −
That's it. After this in the terminal you launched crtools from you should see the contunuing output of the tcp client.
+
That's it. After this in the terminal you launched criu from you should see the continuing output of the tcp client.
 +
 
 +
== See also ==
 +
 
 +
* [[TCP connection]]
    
[[Category:HOWTO]]
 
[[Category:HOWTO]]
 +
[[Category:Sockets]]