#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)) {}