03-05-2009, 12:16 AM
Hmm, follow Spodi's path? "SOX with optimized binary packet sending"
Don't know how he does it though.
http://www.planet-source-code.com/vb/sc ... 4&lngWId=3
Don't know how he does it though.
Spodi Wrote:SOX is just a nice wrapper for the Winsock API. Theres a few hacks you want to do on the socket itself to get it prepped for a game engine, though. For example, it sends a 4-byte (long) overhead for every SEND command, which is pretty useless for a game server (integer would suffice), the default send/recv buffer comes at 8192 bytes (you'd be fine lowering that to around 512 bytes easily), etc.
And just a heads up, you cant use IOCP with SOX I believe, so you can't have an IOCP server and SOX client, because of the additional header I mentioned earlier.
http://www.planet-source-code.com/vb/sc ... 4&lngWId=3