The basic mechanisms of client-server setup are: A client app send a request to a server app. The server app returns a reply. Some of the basic data communications between client and server are: File transfer - sends name and gets a file. Web page - sends url and gets a page. Echo - sends a message and gets it back. Client server communication uses socket. To connect to another machine, we need a socket connection. What's a connection? A relationship between two machines, where two pieces of software know about each other. Those two pieces of software know how to communicate with each other. In other words, they know how to send bits to each other. A socket connection means the two machines have information about each other, including network location (IP address) and TCP port. (If we can use anology, IP address is the phone number and the TCP port is the extension). A so...
Comments
Post a Comment