]> git.sesse.net Git - cubemap/blobdiff - udpinput.h
Support UDP packets larger than 4 kB.
[cubemap] / udpinput.h
index e41266e0dc3340a151d1a1a44a45748dcc628f1a..0ee5dc9b986f0cfa63026aac5c75c163dc3f87ab 100644 (file)
@@ -39,6 +39,9 @@ private:
 
        // The socket we are receiving on (or -1).
        int sock;
+
+       // Temporary buffer, sized for the maximum size of an UDP packet.
+       char packet_buf[65536];
 };
 
 #endif  // !defined(_UDPINPUT_H)