SysSockCreate (FUN) ¶ FUNCTION SysSockCreate : DINT InOut: Scope Name Type Return SysSockCreate DINT Input diAddressFamily DINT diType DINT diProtocol DINT
SysSockGetHostByName (FUN) ¶ FUNCTION SysSockGetHostByName : DWORD InOut: Scope Name Type Return SysSockGetHostByName DWORD Inout Const stHostName STRING
SysSockGetHostName (FUN) ¶ FUNCTION SysSockGetHostName : BOOL InOut: Scope Name Type Return SysSockGetHostName BOOL Inout stHostName STRING Input diNameLength DINT
SysSockGetLastError (FB) ¶ FUNCTION_BLOCK SysSockGetLastError InOut: Scope Name Type Input bEnable BOOL diSocket DINT Output bDone BOOL bBusy BOOL bError BOOL wErrorId WORD dwLastError DWORD
SysSockGetLastErrorSync (FUN) ¶ FUNCTION SysSockGetLastErrorSync : DINT InOut: Scope Name Type Return SysSockGetLastErrorSync DINT Input diSocket DINT
SysSockGetOption (FUN) ¶ FUNCTION SysSockGetOption : BOOL InOut: Scope Name Type Comment Return SysSockGetOption BOOL Input diSocket DINT diLevel DINT diOption DINT pOptionValue DWORD Address of option piOptionLength DWORD Address of option size (DINT)
SysSockHtonl (FUN) ¶ FUNCTION SysSockHtonl : DWORD InOut: Scope Name Type Return SysSockHtonl DWORD Input dwHost DWORD
SysSock2Send (FUN) ¶ FUNCTION SysSock2Send : __XINT Sent data to a TCP socket. InOut: Scope Name Type Comment Return SysSock2Send __XINT Number of sent bytes. 0 if failed. Input hSocket RTS_IEC_HANDLE Handle to the socket pbyBuffer POINTER TO BYTE Buffer with data to sent diBufferSize __XINT Maximum length of the buffer diFlags DINT The flags parameter can be used to influence the behavior of the function beyond the options specified for the associated socket. The semantics of this function are determined by the socket options and the flags parameter. The latter is constructed by using the bitwise OR operator with any of the SOCKET_MSG values. pResult POINTER TO RTS_IEC_RESULT Pointer to runtime system error code (see CmpErrors.library)
SysSock2SendTo (FUN) ¶ FUNCTION SysSock2SendTo : __XINT Send a message over a connectionless socket (UDP). InOut: Scope Name Type Comment Return SysSock2SendTo __XINT Number of bytes sent. Input hSocket RTS_IEC_HANDLE Handle to the socket pbyBuffer POINTER TO BYTE Buffer with send data diBufferSize __XINT Length of data to send. If diBufferSize = 0 ERR_PARAMETER is returned diFlags DINT The flags parameter can be used to influence the behavior of the function beyond the options specified for the associated socket. The semantics of this function are determined by the socket options and the flags parameter. The latter is constructed by using the bitwise OR operator with any of the SOCKET_MSG values. pSockAddr POINTER TO SOCKADDRESS Socket address and port to sent data to diSockAddrSize DINT Size of socket address structure pResult POINTER TO RTS_IEC_RESULT Pointer to runtime system error code (see CmpErrors.library)
SysSock2SetOption (FUN) ¶ FUNCTION SysSock2SetOption : RTS_IEC_RESULT Set options of a specified socket. InOut: Scope Name Type Comment Return SysSock2SetOption RTS_IEC_RESULT Runtime system error code (see CmpErrors.library). Input hSocket RTS_IEC_HANDLE Handle to the socket diLevel DINT Level of the socket diOption DINT Socket option command pdiOptionValue POINTER TO BYTE Pointer to the option value diOptionLen DINT Lenght of option value