IAPI::RawSocket

property RawSocket.

Retrieves the raw socket identifier from a socket object.

 

HRESULT RawSocket(
  long hSocketObject,
  long *pVal
);

Parameters

hSocketObject

[in] . Handle of a socket object which is created by below properties and method:

         - CreateSocketClientObjectEx(…)

         - CreatePoolSocketServerObject(…)

         - onConnectionRequest(…)

pVal

[out, retval] Returns a valid socket id or 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