2003-11-25 03:11:50 +01:00
|
|
|
#include "Network.h"
|
|
|
|
|
|
|
|
CServerSocket::~CServerSocket()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void CServerSocket::OnRead()
|
|
|
|
{
|
2004-03-08 03:08:12 +01:00
|
|
|
CSocketAddress remoteAddr;
|
2003-11-25 03:11:50 +01:00
|
|
|
|
|
|
|
PS_RESULT res=PreAccept(remoteAddr);
|
|
|
|
if (res==PS_OK)
|
|
|
|
{
|
|
|
|
OnAccept(remoteAddr);
|
|
|
|
}
|
|
|
|
// All errors are non-critical, so no need to do anything special besides
|
|
|
|
// not calling OnAccept
|
|
|
|
}
|
|
|
|
|
|
|
|
void CServerSocket::OnWrite()
|
|
|
|
{}
|
|
|
|
|
|
|
|
void CServerSocket::OnClose(PS_RESULT errorCode)
|
|
|
|
{}
|