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
Receive2SysTypes.RTS_IEC_RESULTInput
pbyDataPOINTER TO BYTE
Pointer to receive buffer
diDataSize__XINTSize of the receive buffer
Output
udiIPFromUDINTIP Address of the sender
uiPortFromUINTDestination Port
diRecvSize__XINTSize of the received data
eSocketTypeeLogCodeErrorCode