Usually in .net a call to read from the network will block the thread until either the connection dies or data is received. Instead of blocking just check the network buffers each tick to see if anything exists then read from it. (This applies for TCP, but I'm sure you could do it for UDP aswell). I don't feel its necessary to create multiple threads for reading/writing to and from TCP network buffers.
XanatherMember Since 24 Apr 2012
Offline Last Active Aug 17 2013 01:21 AM
- Group Members
- Active Posts 241
- Profile Views 4,929
- Submitted Links 0
- Member Title Member
- Age Age Unknown
- Birthday Birthday Unknown
Programming, Games, networking, you know all that stuff...
- Website URL http://www.xanather.com