ITcpConnection.Receive (METH)

METHOD Receive : ERROR_ID

Method to receive the data as a stream from an established TCP connection

InOut:

Scope

Name

Type

Comment

Return

Receive

ERROR_ID

Input

Data

POINTER TO BYTE

Pointer to the memory size where the data will be stored

Size

UDINT

Size of the datat to be received - maximum size of TCP packet is 64kB = 65 535 Bytes

Output

RecvBytes

DINT

Number of received bytes that has been read from the TCP stream

AddErrNo

RTS_IEC_RESULT

Additional error number gives information about error from SysSock2Close –> please see CmpErrors.Errors