SysSockGetPeerName (FUN)
FUNCTION SysSockGetPeerName : RTS_IEC_RESULT
Returns the socket address of the peer to which a socket is connected.
The SysSockGetPeerName function can be used only on a connected socket.
- InOut:
Scope
Name
Type
Comment
Return
SysSockGetPeerNameRTS_IEC_RESULTRuntime system error code (see CmpErrors.library).
Input
hSocketRTS_IEC_HANDLEHandle to the socket
pSockAddrPOINTER TO SOCKADDRESS
Socket address of the peer
pdiSockAddrSizePOINTER TO DINT
Pointer to size of socket address structure