Functions ¶ UDINT_TO_IPSTRING (Function)
UDINT_TO_IPSTRING (FUN) ¶ FUNCTION UDINT_TO_IPSTRING : STRING Converts an udint value to a readable ip address string InOut: Scope Name Type Return UDINT_TO_IPSTRING STRING Input udiIPAddress UDINT
GlobalConstants ¶ Constants (GVL)
Connector.Disconnect (METH) ¶ METHOD Disconnect : ERROR Disconnects the stream from the server InOut: Scope Name Type Return Disconnect ERROR
Connector.IPAddress (PROP) ¶ PROPERTY IPAddress : STRING IP Address of a listener the connector shall connect to
Connector.Reset (METH) ¶ METHOD PUBLIC Reset
Connector.ResolveHostName (METH) ¶ METHOD ResolveHostName : ERROR Resolves the host name to an ip address. Attention! This function is blocking until the host name is resolved or an error occurred! InOut: Scope Name Type Input sHostName STRING Return ResolveHostName ERROR Output sIPAddress STRING
Connector.Port (PROP) ¶ PROPERTY Port : UINT // Port of a listener the connector shall connect to
Listener (FB) ¶ FUNCTION_BLOCK Listener Listener fb opens a socket on a port and listens for new incomming streams. Represents a TCP Server. Order of calls: Start: Binds the listening socket and starts listening on it. Listen: This method may be called at any time after start. The new Streams are appended to the already listening streams. Accept: Returns a new connected TCP Stream. Stop: Stops listening on the port. Properties: IPAddress Port Socket Methods: Accept Listen Start Stop Structure: Accept (Method) IPAddress (Property) Listen (Method) Port (Property) Socket (Property) Start (Method) Stop (Method)
Listener.Accept (METH) ¶ METHOD Accept : ERROR Returns a new connected TCP Stream InOut: Scope Name Type Comment Input pStream POINTER TO Stream Stream to open Return Accept ERROR