What is socket & programming it by C++ - Knowledge Is Free

Latest

Computer Tips, Tricks & Hacks.

BANNER 728X90

Wednesday, 23 October 2013

What is socket & programming it by C++

A socket has a typical flow of events. In a connection-oriented client-to-server model, the socket on the server process waits for requests from a client. To do this, the server first establishes (binds) an address that clients can use to find the server. When the address is established, the server waits for clients to request a service. The server performs the client's request and sends the reply back to the client. The two endpoints establish a connection, and bring the client and server together. The client-to-server data exchange takes place when a client connects to the server through a socket.

No comments:

Post a Comment