Networking Tips

There are two options for networking: use a package like Boost that implements core networking functionality, or implement your own directly on top of sockets. Groups have done both over the years. Neither option is clearly better than the other, both have tradeoffs. Below are reports from groups about what they used and what their experience was.

Even though every resource says not to use TCP for games, ignore all of that advice and use TCP. We are in a high-bandwidth, low-delay networking environment, and we only have 10 weeks. You want to use a reliable, in-order transport protocol from the start, you do not want to implement your own. If you are using sockets directly, be sure to disable Nagle's algorithm (set TCP_NODELAY).