Port.Receive2 (METH)ΒΆ
METHOD Receive2 : SysTypes.RTS_IEC_RESULT
Tries to receive data from a socket; returns ERR_PENDING if there is no data to receive
- InOut:
Scope
Name
Type
Comment
Return
Receive2
SysTypes.RTS_IEC_RESULT
Input
pbyData
POINTER TO BYTE
Pointer to receive buffer
diDataSize
__XINT
Size of the receive buffer
Output
udiIPFrom
UDINT
IP Address of the sender
uiPortFrom
UINT
Destination Port
diRecvSize
__XINT
Size of the received data
eSocketType
eLogCode
ErrorCode