Client Server Network
Client Server Network
Client
A client is a program that runs on the local machine requesting service from the
server. A client program is a finite program means that the service started by the
user and terminates when the service is completed.
Server
A server is a program that runs on the remote machine providing services to the
clients. When the client requests for a service, then the server opens the door for
the incoming requests, but it never initiates the service.A server program is an
infinite program means that when it starts, it runs infinitely unless the problem
arises. The server waits for the incoming requests from the clients. When the
request arrives at the server, then it responds to the request.
The application programs using the client-server model should follow the given
below strategies:
An application program is known as a client program, running on the local
machine that requests for a service from an application program known as a
server program, running on the remote machine.
A client program runs only when it requests for a service from the server while
the server program runs all time as it does not know when its service is required.
A server provides a service for many clients not just for a single client.
Therefore, we can say that client-server follows the many-to-one relationship.
Many clients can use the service of one server.
Services are required frequently, and many users have a specific client-server
application program. For example, the client-server application program allows
the user to access the files, send e-mail, and so on. If the services are more
customized, then we should have one generic application program that allows
the user to access the services available on the remote computer.