Client and Server, both are well know words now-a-days. So basically what does it mean by client and Server.
Client : It is nothing but an object which wants to get some information about something. Simply we can say that it makes request for some information.
Server : It is nothing but an object who knows very well that what response it will send for any particular request. Simply we can say that it is something who listens the request and sends information back.
So how it works???
So first of all the client makes an request to the server for some information.
Then the server checks for that information which requested by the client and then it sends back the information to the client.
Now one thing is obvious that the information which client has requested, has to be present in the server else the server will send a response to client saying that no information is available now. 🙂
Now again how they communicate with each other??
Oh! a well known protocol i.e. http is used for this. But not only this protocol, many more protocols are also there like ftp, pop etc.
Will update you soon about these protocols.
Stay Happy!! 🙂
Cheers…