![]() |
SetReceiveTimeout() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Public Function |
Declared in: SpoofSocket.h |
BOOL SetReceiveTimeout( unsigned long ulMS);
Set receive timeout (for blocked only)
try { //Quit if not ok if (!CheckSocketValid()) return FALSE; //Set it if(setsockopt(GetHandle(), SOL_SOCKET, SO_RCVTIMEO, (char*)&ulMS, sizeof(ulMS))==GetErrorCode()) { //Check for options error SetLastError("SetReceiveTimeout"); //Exit return FALSE; } else return TRUE; } ERROR_HANDLER_RETURN("SetReceiveTimeout",FALSE)
![]() |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |