A
asharda
Hello,
My experience with socket-programming is close to zero.
I am looking for some kind of template which describes as to how the
async-client (which can handle multiple responses from a server) can
be written (i saw few examples on the net, but in those examples, the
client execution terminates after sending/receiving response).
Basically, the client should:
- Connect to the server (at specific IP/port)
- Respond to any message it gets from server (once connected to the
server, client should be continuously running, waiting for messages
and and call respond appropriately).
So, this way, if there are multiple messages that server is sending to
client at the same time, client should be able to handle it (so this
client will be kind-of behaving like a server in the sense that each
time it gets a connection, it assigns it to a worker-process and then
keeps listening for other messages).
Is this feasible? if yes, then can you give some examples?
Platform: XP, vs2005 OR vs2008
Thanks.
My experience with socket-programming is close to zero.
I am looking for some kind of template which describes as to how the
async-client (which can handle multiple responses from a server) can
be written (i saw few examples on the net, but in those examples, the
client execution terminates after sending/receiving response).
Basically, the client should:
- Connect to the server (at specific IP/port)
- Respond to any message it gets from server (once connected to the
server, client should be continuously running, waiting for messages
and and call respond appropriately).
So, this way, if there are multiple messages that server is sending to
client at the same time, client should be able to handle it (so this
client will be kind-of behaving like a server in the sense that each
time it gets a connection, it assigns it to a worker-process and then
keeps listening for other messages).
Is this feasible? if yes, then can you give some examples?
Platform: XP, vs2005 OR vs2008
Thanks.