in reply to Re^4: Single server-multiple clients
in thread Single server-multiple clients
What parts of this still very unstructured stuff are fixed and what parts are your idea of an implementation?
Things get much, much easier once you reduce your protocol to a request-response structure. For example, clients could always initiate the communication by a request, be it "Here is an MD5 for my own file" or "Is there a file I should compute an MD5 for?".
I really recommend first thinking through the flow of messages through your whole system instead of thinking about threads and structs. Alternatively, learn first about network programming. Or learn about multiprocessing. But not all three in the same project and not at once.
Also, I'm not a native speaker of the English language, which makes it hard for me when you use txtspk like "u cud" where I expect to read "you could". If you would take more time to proof-read and expand your writing, that would make it more pleasant for me to read it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Single server-multiple clients
by hari9 (Sexton) on Jul 20, 2010 at 20:16 UTC | |
by Corion (Patriarch) on Jul 20, 2010 at 20:31 UTC | |
by hari9 (Sexton) on Jul 20, 2010 at 20:38 UTC | |
by Corion (Patriarch) on Jul 20, 2010 at 20:41 UTC | |
by hari9 (Sexton) on Jul 20, 2010 at 21:04 UTC |