1
0
forked from 0ad/0ad
0ad/source/network/ServerSocket.cpp
2006-08-26 20:25:37 +00:00

32 lines
569 B
C++

#include "precompiled.h"
#include "Network.h"
#include "NetLog.h"
CServerSocket::~CServerSocket()
{
}
void CServerSocket::OnRead()
{
CSocketAddress remoteAddr;
PS_RESULT res=PreAccept(remoteAddr);
if (res==PS_OK)
{
OnAccept(remoteAddr);
}
else
{
// All errors are non-critical, so no need to do anything special besides
// not calling OnAccept [ shouldn't be, that is ;-) ]
NET_LOG("CServerSocket::OnRead(): PreAccept returned an error: %s", res);
}
}
void CServerSocket::OnWrite()
{}
void CServerSocket::OnClose(PS_RESULT UNUSED(errorCode))
{}