STREAM_STATE (ENUM) ¶ TYPE STREAM_STATE : InOut: Name Initial Comment CLOSED 0 Stream is closed CONNECTING Stream is connecting LISTENING Stream is listening OPEN Stream is open. Ready to send/receive data FAILED Opening the stream failed.
Function Blocks ¶ Connector (FunctionBlock) Connect (Method) Disconnect (Method) IPAddress (Property) Port (Property) Reset (Method) ResolveHostName (Method) Listener (FunctionBlock) Accept (Method) IPAddress (Property) Listen (Method) Port (Property) Socket (Property) Start (Method) Stop (Method) Select (FunctionBlock) Check (Method) CheckError (Method) CheckReceive (Method) CheckSend (Method) Stream (FunctionBlock) CheckConnectivity (Method) CheckReceive (Method) CheckSend (Method) Close (Method) Create (Method) FdIsSet (Method) FdSet (Method) GetOption (Method) IoControl (Method) Properties IPAddress (Property) Socket (Property) State (Property) Receive (Method) Reset (Method) Send (Method) SetOption (Method)
Connector (FB) ¶ FUNCTION_BLOCK Connector Connector fb opens a tcp socket to a tcp server and initializes the given tcp stream. Represents a TCP Client. Properties: IPAddress Port Methods: Connect Disconnect Reset ResolveHostName Structure: Connect (Method) Disconnect (Method) IPAddress (Property) Port (Property) Reset (Method) ResolveHostName (Method)
Connector.Connect (METH) ¶ METHOD Connect : ERROR Connects to a server and returns a tcp stream; Call this function until an Error <> PENDING OR Error <> NO_ERROR is returned or pStream is set InOut: Scope Name Type Comment Input sIPAddress STRING IP address of the server uiPort UINT Port on which the server is listening Return Connect ERROR Output pStream POINTER TO Stream If the connection is established, pStream is != 0
Connector.Disconnect (METH) ¶ METHOD Disconnect : ERROR Disconnects the stream from the server InOut: Scope Name Type Return Disconnect ERROR
OriDynState_Interpolate (FUN) ¶ FUNCTION OriDynState_Interpolate InOut: Scope Name Type Inout ov OriDynState Inout Const q0 SM3M.SMC_Quat qLog SM3M.SMC_Quat Input lambda LREAL
Connector.IPAddress (PROP) ¶ PROPERTY IPAddress : STRING IP Address of a listener the connector shall connect to
Connector.Port (PROP) ¶ PROPERTY Port : UINT // Port of a listener the connector shall connect to
SysSockSelect30 (FUN) ¶ FUNCTION SysSockSelect30 : UDINT InOut: Scope Name Type Return SysSockSelect30 UDINT Input diWidth DINT pfdRead POINTER TO SOCKET_FD_SET pfdWrite POINTER TO SOCKET_FD_SET pfdExcept POINTER TO SOCKET_FD_SET ptvTimeout POINTER TO SOCKET_TIMEVAL pdiReady POINTER TO DINT
SysSockSend30 (FUN) ¶ FUNCTION SysSockSend30 : DINT InOut: Scope Name Type Return SysSockSend30 DINT Input hSocket UDINT pbyBuffer POINTER TO BYTE diBufferSize DINT diFlags DINT pResult POINTER TO UDINT