IPeer.Receive2 (METH)ΒΆ

METHOD Receive2 : ERROR

This method serves to receive data.
The pointer pData specifies the memory area to write the read data to. udiSize defines the max number of bytes to read. When data was read successfully, udiCount indicates the actually read number of bytes.
itfIPAddressFrom and uiPortFrom indicate the ip and port the data was received from.
InOut:

Scope

Name

Type

Return

Receive2

ERROR

Input

pData

__XWORD

udiSize

UDINT

Inout

itfIPAddressFrom

IIPAddress

Output

uiPortFrom

UINT

udiCount

UDINT

eTransmission

TRANSMISSION