Changes

Jump to navigation Jump to search
108 bytes added ,  16:32, 12 April 2013
collapse tcp.c text
Line 3: Line 3:  
== Compile and run simple TCP client and server ==
 
== Compile and run simple TCP client and server ==
 
The below program is a simple echo server and a client, that pings server with increasing numbers once a second. In this howto we will dump and restore the client part.
 
The below program is a simple echo server and a client, that pings server with increasing numbers once a second. In this howto we will dump and restore the client part.
 +
{| class="collapsible <includeonly>collapsed</includeonly> collapsed" border="0"
 +
|-
 +
! tcp-howto.c:
 +
|-
 +
|
 
<pre>
 
<pre>
 
#include <sys/socket.h>
 
#include <sys/socket.h>
Line 161: Line 166:  
}
 
}
 
</pre>
 
</pre>
 +
|}
    
So compile it and run server
 
So compile it and run server

Navigation menu