Increased size of socket buffer
This commit is contained in:
@@ -15,6 +15,8 @@ bool UDPClient::Connect(std::string playerName, std::string address, int port)
|
||||
}
|
||||
m_ReceiverEndpoint = udp::endpoint(boost::asio::ip::address().from_string(address), port);
|
||||
m_Socket = boost::shared_ptr<boost::asio::ip::udp::socket>(new boost::asio::ip::udp::socket(m_IOService));
|
||||
boost::asio::socket_base::receive_buffer_size option(819200);
|
||||
m_Socket->set_option(option);
|
||||
m_Socket->open(boost::asio::ip::udp::v4());
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user