Did changes upon pull request's request.

This commit is contained in:
Jocke
2016-03-11 12:54:59 +01:00
parent 0fbc482f9c
commit 5f959ded89
9 changed files with 15 additions and 31 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ 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));
m_Socket->open(boost::asio::ip::udp::v4());
boost::asio::socket_base::receive_buffer_size option(819200);
boost::asio::socket_base::receive_buffer_size option(m_SizeOfSocketBuffer);
m_Socket->set_option(option);
return true;
}