Various clean ups.

This commit is contained in:
stiffly
2016-02-23 11:07:56 +01:00
parent c42e1e0967
commit fc7d62a5ad
10 changed files with 1 additions and 123 deletions
-10
View File
@@ -70,7 +70,6 @@ void UDPServer::Receive(Packet & packet, PlayerDefinition & playerDefinition)
if (bytesRead > 0) {
packet.ReconstructFromData(m_ReadBuffer, bytesRead);
}
LOG_INFO("Received server list msg");
playerDefinition.Endpoint = m_ReceiverEndpoint;
}
@@ -81,15 +80,6 @@ bool UDPServer::IsSocketAvailable()
int UDPServer::readBuffer()
{
//boost::system::error_code error = boost::asio::error::host_not_found;
//unsigned int length = m_Socket->receive_from(
// boost::asio::buffer((void*)data
// , BUFFERSIZE)
// , m_ReceiverEndpoint, 0, error);
//if (error) {
// LOG_WARNING(error.message().c_str());
//}
//return length;
if (!m_Socket) {
return 0;
}