M
Mythran
I am quite familiar with C/C++ network handling on *nux boxes and it's
blocking/non-blocking I/O. What I need to do in VB.Net is very similar. I need
to take a single server application and allow up to 500 users to connect to this
application remotely using TCP/IP. Once a connection has been made, it must
process data every few milliseconds and check all connections (one at a time or
through an event somehow) for user-entered text.
This application will probably be telnetted into so it must allow for the text to
be sent at once, not single-character at a time.
The problem I am having is once a client connects to the server, the applications
stops until the user sends data, once data is received, the application loops
once and waits again. I believe I need to start a new thread which will allow
the application to wait for the user to enter data while still checking server
side events and handling it's job synchronously.
This sounds like something from a chat, so if I can get a basic chat program
using threading, that would be nice...another similar app would be a multi-player
game that I can "legally" view the code for.
Thanks a bundle!
Mythran
blocking/non-blocking I/O. What I need to do in VB.Net is very similar. I need
to take a single server application and allow up to 500 users to connect to this
application remotely using TCP/IP. Once a connection has been made, it must
process data every few milliseconds and check all connections (one at a time or
through an event somehow) for user-entered text.
This application will probably be telnetted into so it must allow for the text to
be sent at once, not single-character at a time.
The problem I am having is once a client connects to the server, the applications
stops until the user sends data, once data is received, the application loops
once and waits again. I believe I need to start a new thread which will allow
the application to wait for the user to enter data while still checking server
side events and handling it's job synchronously.
This sounds like something from a chat, so if I can get a basic chat program
using threading, that would be nice...another similar app would be a multi-player
game that I can "legally" view the code for.
Thanks a bundle!
Mythran