Method ITcIoTcpProtocol:SendData

Sends data (server and client functionality).

Syntax

HRESULT TCOMAPI SendData(ULONG socketId, ULONG nData, PVOID pData, ULONG& nSendData) 

Method ITcIoTcpProtocol:SendData 1: Return value

Type

Description

HRESULT

Indicates success, see Return values.

Parameter

Name

Type

Description

socketId

ULONG

The socket to be used.

nData

ULONG

Length of the data to be sent.

pData

PVOID

Pointer to the data to be sent.

nSendData

ULONG&

Returns the number of sent bytes. If this is smaller than nData, the data should be re-sent.