SysSockConnect (FUN)ΒΆ
FUNCTION SysSockConnect : RTS_IEC_RESULT
Connect as a client to a TCP server.
- InOut:
Scope
Name
Type
Comment
Return
SysSockConnect
RTS_IEC_RESULT
Runtime system error code (see CmpErrors.library).
Input
hSocket
RTS_IEC_HANDLE
Handle to the socket
pSockAddr
POINTER TO SOCKADDRESS
Socket address of the server to connect to
diSockAddrSize
DINT
Size of socket address structure