SysSock2Connect (FUN)
FUNCTION SysSock2Connect : RTS_IEC_RESULT
Connect as a client to a TCP server.
- InOut:
Scope
Name
Type
Comment
Return
SysSock2ConnectRTS_IEC_RESULTRuntime system error code (see CmpErrors.library).
Input
hSocketRTS_IEC_HANDLEHandle to the socket
pSockAddrPOINTER TO SOCKADDRESS
Socket address of the server to connect to
diSockAddrSizeDINTSize of socket address structure