SysSockHtons (FUN) ¶ FUNCTION SysSockHtons : WORD Converts a value of type short from order of the TCP/IP network to the host byte order. InOut: Scope Name Type Comment Return SysSockHtons WORD Converted WORD value Input usHost WORD Ethernet value
SysSockInetAddr (FUN) ¶ FUNCTION SysSockInetAddr : RTS_IEC_RESULT Convert an IP address string into an IP address. InOut: Scope Name Type Comment Return SysSockInetAddr RTS_IEC_RESULT Runtime system error code (see CmpErrors.library). Input szIPAddress REFERENCE TO STRING Pointer to get IP address string (must be at least 16 bytes long) pInAddr POINTER TO UDINT Pointer to IP address description
SysSockInetNtoa (FUN) ¶ FUNCTION SysSockInetNtoa : RTS_IEC_RESULT Convert IP address to a string. InOut: Scope Name Type Comment Return SysSockInetNtoa RTS_IEC_RESULT Runtime system error code (see CmpErrors.library). Input pInAddr POINTER TO INADDR Pointer to IP address description szIPADDR REFERENCE TO STRING Pointer to get IP address string (must be at least 16 bytes long) diIPAddrSize DINT Maximum length of szIPAddr
SysSockIoctl (FUN) ¶ FUNCTION SysSockIoctl : RTS_IEC_RESULT Io-control of a socket. InOut: Scope Name Type Comment Return SysSockIoctl RTS_IEC_RESULT Runtime system error code (see CmpErrors.library). Input hSocket RTS_IEC_HANDLE Handle to the socket diCommand DINT Io-control command pdiParameter POINTER TO DINT Parameter value of the command
Stream.IoControl (METH) ¶ METHOD IoControl : ERROR Call an IoCtl on the stream InOut: Scope Name Type Comment Input diCommand DINT IoCtl command to be executed Inout diParameter DINT Parameter of the command Return IoControl ERROR
Properties ¶ IPAddress (Property) Socket (Property) State (Property)
Stream.Receive (METH) ¶ METHOD Receive : ERROR Receive data from the stream InOut: Scope Name Type Comment Input pbyBuffer POINTER TO BYTE Memory location where the received data shall be copied to diBufferSize __XINT Size of available memory Return Receive ERROR Output diReceived __XINT Size of received data
Stream.Reset (METH) ¶ METHOD PUBLIC Reset
Stream.Send (METH) ¶ METHOD Send : ERROR InOut: Scope Name Type Comment Input pbyBuffer POINTER TO BYTE Memory location of the data to be sent diBufferSize __XINT Size of memory Return Send ERROR Output diSent __XINT Size of sent data.
Stream.SetOption (METH) ¶ METHOD SetOption : ERROR Sets an option on the socket InOut: Scope Name Type Comment Return SetOption ERROR Input diOption DINT Socket option diValue DINT Value to be set on this option