ASTRACT
Client-Server Protocol is one of three basic groups of NOSs' (Network Operating System). The Protocol enables one machine to be dedicated to resources.There is an extremely high level of protection and organization that permits extensive control of data. This machine is called a dedicated server.In computing, a client-server protocol is a protocol in which there is a single server which listens for connections, usually on a specific port (if this is TCP, UDP, or a similar protocol), and one or more clients which connect to it.Programs written to use TCP are developed using the client-server model.The client application initiates what is called an active open. It creates a socket and actively attempts to connect to a server program. On the other hand, the server application creates a socket and passively listens for incoming connections from clients, performing what is called a passive open.
To review, there are five significant steps that a program which uses TCP must take to establish and complete a connection. The server side would follow these steps:
Create a socket.
Listen for incoming connections from clients.
Accept the client connection.
Send and receive information.
Close the socket when finished, terminating the conversation.
Listen for incoming connections from clients.
Accept the client connection.
Send and receive information.
Close the socket when finished, terminating the conversation.
In the case of the client, these steps are followed:
Create a socket.
Specify the address and service port of the server program.
Establish the connection with the server.
Send and receive information.
Close the socket when finished, terminating the conversation.
Specify the address and service port of the server program.
Establish the connection with the server.
Send and receive information.
Close the socket when finished, terminating the conversation.