![]() |
OnSocketReceive() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Protected Function |
Declared in: ICMPSocketAsync.h |
virtual BOOL OnSocketReceive( int iErrorCode);
Handle incoming data
try { //Here we receive the data if (!iErrorCode) { //Buffer char* buf; buf=new char[ICMP_BUF]; //Read the data int iRead; iRead=Receive(buf,ICMP_BUF); BOOL bResult=FALSE; //Only if not an error if (iRead!=SOCKET_ERROR) bResult=ProccessICMP(buf); //Clean up delete [] buf; return bResult; } else return FALSE; } ERROR_HANDLER_AMBIG_RETURN(CSpoofSocket,"OnSocketReceive",FALSE)
![]() |
Site content copyright © 2001 Barak Weichselbaum. See the About page for additional notices. This page last updated: 27 Jun 2001. |