Sockets are commonly used for client and server interaction. ... The clients connect to the server, exchange information, and then disconnect. 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.