forked from 0ad/0ad
746c081c9c
This was SVN commit r5411.
32 lines
572 B
C++
32 lines
572 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_LOG2( "CServerSocket::OnRead(): PreAccept returned an error: %s", res );
|
|
}
|
|
}
|
|
|
|
void CServerSocket::OnWrite()
|
|
{}
|
|
|
|
void CServerSocket::OnClose(PS_RESULT UNUSED(errorCode))
|
|
{}
|