diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2017-01-19 13:33:10 +0100 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2017-01-23 20:18:23 +0100 |
commit | 93368571326e3472522669b76998f58aed78864f (patch) | |
tree | 3c1dd89f00a461b9e77479aa684c29c3a462d31d /platform | |
parent | 68dc969f8ca242d0c4f927a417557288e4b1b75f (diff) |
Use default UDP ring buffer size of 65536 for clients
We should probably create a specific function for setting the
recv buffer anyway. UDP sockets does not need to bind (listen)
to be able to call recvfrom. This is especially useful for clients
who just call set_send_address and start communicating with a server.
Diffstat (limited to 'platform')
-rw-r--r-- | platform/windows/packet_peer_udp_winsock.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/windows/packet_peer_udp_winsock.cpp b/platform/windows/packet_peer_udp_winsock.cpp index 9f1617d540..e5eb062165 100644 --- a/platform/windows/packet_peer_udp_winsock.cpp +++ b/platform/windows/packet_peer_udp_winsock.cpp @@ -154,7 +154,7 @@ void PacketPeerUDPWinsock::close(){ ::closesocket(sockfd); sockfd=-1; sock_type = IP::TYPE_NONE; - rb.resize(8); + rb.resize(16); queue_count=0; } @@ -290,7 +290,7 @@ PacketPeerUDPWinsock::PacketPeerUDPWinsock() { queue_count=0; peer_port=0; sock_type = IP::TYPE_NONE; - rb.resize(8); + rb.resize(16); } PacketPeerUDPWinsock::~PacketPeerUDPWinsock() { |