IAPI::EnableSocketObjectNonBlockingModeUsage

property EnableSocketObjectNonBlockingModeUsage.

Enables or disables non blocking mode for a socket object. By default, Winsock uses blocking mode.

 

HRESULT EnableSocketObjectNonBlockingModeUsage(
  long hSocketObject,
  long Enable,
  long *pVal
);

Parameters

hSocketObject

[in] .   Handle of socket object.

Enable

[in,defaultvalue(1)] .

         1 enables non blocking mode

         0 disables non blocking

pVal

[out, retval] The returned value is 1 if succeeded, 0 if failed

Return Values

S_OK

The operation was successfull.

E_POINTER

A NULL pointer was supplied as an argument.

E_UNEXPECTED

An unexpected error occoured.

See Also

IAPI