Method ITcIoTcpProtocolRecv:ReceiveData

Is called by the TCP/UDP RT module as a callback to transfer data.

Syntax

HRESULT TCOMAPI ReceiveData(ULONG socketId, ULONG nData, PVOID pData) 

Method ITcIoTcpProtocolRecv:ReceiveData 1: Return value

Name

Type

Description

ReceiveData

HRESULT

Indicates success and must be provided accordingly by the implemented module.

Parameter

Name

Type

Description

socketId

ULONG

The socket on which data was received.

nData

ULONG

Number of data received.

pData

PVOID

Pointer to the received data.