Python socket programming design and implementation: send file to server, server compute, receive file back
问题 Here's my current algorithm. Client site: initialize socket send file to server receive file from server close socket Server site: initialize socket and listen Now in a new thread per request: receive file from client computer resulting file (40 second operation) send resulting file close socket For implementation I'm using Python with socket and threading modules, as shown in this tutorial, then I'm repeating the send/receive code on the other sides. That's my first server/client development