Showing posts with label network programming. Show all posts
Showing posts with label network programming. Show all posts
Tuesday, 13 December 2016
Sunday, 3 November 2013
A skeletal model for the client-proxy-server system
A skeletal model for the client-proxy-server systemClientThe client should do the following things:
ProxyThe proxy, being basically both a kind of a server and a client, should do the following things:
ServerThe server should do the following things:
Additional notesAfter implementing the basic model described above, you can easily start adding more features. For example, you could add a sleep in the proxy between steps 3 and 4 and instead of directly sending the data received from the client to the server, you could read the file and send the contents - this way you can manually change the file before it gets sent to the server.I also suggest you read Beej's Guide to Network Programming if you want to really learn the basics of network programming. The examples are in C, but the basic principles also apply in Python (and other languages as well). |
Subscribe to:
Posts (Atom)
