Stream Socket Application
A version of this page is also available for
4/8/2010
Use sockets to echo data from a client to a server and back. A socket server application listens on the network for incoming client packets. A socket client application initiates communication with the server by sending a packet. When the server receives the packet, it responds by echoing the data. After this initial sequenced message exchange, the client and the server can exchange data.
In This Section
Creating a Socket Server Application
Creating a Socket Client Application