Search code examples
c++network-programmingstreamingwinsockbuffering

Networking Method


Hey guys, Iv'e noticed that when I send a complete packet (collect it's data in a buffer and send) it is much slower than sending the packet byte by byte. Will it be okay if I make an online game using this method?


Solution

  • I think you need to define what are your measurement points (what exactly are you measuring). By the way is this TCP or UDP?

    Anyway Winsock has its own internal buffers that you can modify by calls to setsockopt.