class CMyServer:public IOCPServer
{
public:
void virtual CompletedRecvDate(IOCPBUFFER* pBuffer, IOCPCONTEXT* pContext)
{
pBuffer->buf[pBuffer->nLen]='/0';
printf("%s/n",pBuffer->buf);
}
};
int _tmain(int argc, _TCHAR* argv[])
{
CMyServer server;
server.Start();
if(server.GetIsServerStart())
{
printf("run..../n");
}
getchar();
server.ShutDown();
}