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 Jun 12 2014 06:02 AM
- Group Members
- Active Posts 241
- Profile Views 5,964
- Submitted Links 0
- Member Title Member
- Age 18 years old
- Birthday October 18, 1995
Programming, Games, networking, you know all that stuff...
- Website URL http://www.xanather.com