hari9 has asked for the wisdom of the Perl Monks concerning the following question:
There is a common storage disk (CDS) interconnected to all the clients in a system.
When first client pings server.
the server asks the first client to write a random file into the CDS,read it back and verify if its the same.
Then send to server the MD5 of the random file.
Meanwhile if any other client pings the server, it is asked by server to verify if the MD5 returned by client 1
is correct, once present client verifies( by comparing MD5 given by server and reading the message written by client 1 from CDS and MD5ing it),
server asks this client to write a random file into CDS,read it back..verify if the file contents remains the same and then submit the MD5 of this file to server..
Q: If server should direct the client to do a particular task, it should know what the status of the client (wat status means, is, if the client is yet to verify the x-clients MD5 or do read/verify the file. for this I would need a structure of client's status to be passed thro socket )
Q. Threads wouldnt be suitable i believe, since memory needs not to be shared, IO::Select wouldnt be useful (since it listens only one client at a time, and misses to Table the list of other clients pinging the server), proxy server,( how would server communicate a common space like table).
Thanks and real sry for the painfully long post :(
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Single server-multiple clients
by BrowserUk (Patriarch) on Jul 20, 2010 at 18:31 UTC | |
by hari9 (Sexton) on Jul 20, 2010 at 18:49 UTC | |
by BrowserUk (Patriarch) on Jul 20, 2010 at 21:36 UTC | |
by hari9 (Sexton) on Jul 21, 2010 at 20:53 UTC | |
by hari9 (Sexton) on Jul 22, 2010 at 19:18 UTC | |
by Corion (Patriarch) on Jul 20, 2010 at 18:54 UTC | |
by hari9 (Sexton) on Jul 20, 2010 at 19:20 UTC | |
by Corion (Patriarch) on Jul 20, 2010 at 19:32 UTC | |
|