SysSockSendToUdp (FUN)ΒΆ
FUNCTION SysSockSendToUdp : __XINT
Send a paket to a UDP socket.
- InOut:
Scope
Name
Type
Comment
Return
SysSockSendToUdp
__XINT
Number of bytes sent
Input
hSocketUdp
RTS_IEC_HANDLE
Handle to the UDP socket
diPort
DINT
Port number ot send data to
szDestAddress
REFERENCE TO STRING
Destination IP address ot send data to
pbyData
POINTER TO BYTE
Pointer to data to send
diDataSize
__XINT
Size of data to send. If diDataSize = 0 ERR_PARAMETER is returned.
pResult
POINTER TO RTS_IEC_RESULT
Pointer to runtime system error code (see CmpErrors.library)