-
March 16th, 2011, 04:36 AM
#1
IO model for client handling multiple socket connection
I am working on TCP Client Simulator on C++.Here can simulate 1000 client.each client has some status information which server may require.Server can get the status of a particular client by issuing command with client ID.
Server may issue these command
1."start-stream"-streams the data to server continually.
2."stop stream"-stops the streaming
3. "Status"-asking for status
client respond with 1.streams the data2.stops the streaming 3.send status information to server.
We can't use third party libraries(boost etc) to do this.I need to implement in C++.I came across the Several I/O model like Completion Port,Overlapped I/O etc.I am confused which one will suitable for the client application.
1.I wanted to know what I/O model is suitable for Client to manage these number instance.
2. how can I ensure the state of the each client instance.
3. data structure to maintain the status information of the each client.
Last edited by lok.vikram; March 16th, 2011 at 04:38 AM.
Reason: add more point
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|