SysSockRecvFromUdp (FUN)ΒΆ

FUNCTION SysSockRecvFromUdp : __XINT

Receive a paket from a UDP socket.
InOut:

Scope

Name

Type

Comment

Return

SysSockRecvFromUdp

__XINT

Number of bytes received

Input

hSocketUdp

RTS_IEC_HANDLE

Handle to the UDP socket

pbyData

POINTER TO BYTE

Pointer to data to receive

diDataSize

__XINT

Size of data to receive

pReply

POINTER TO UDP_REPLY

Description of the client that has sent this paket

pResult

POINTER TO RTS_IEC_RESULT

Pointer to runtime system error code (see CmpErrors.library)