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