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:

  1. Start: Binds the listening socket and starts listening on it.

  2. Listen: This method may be called at any time after start. The new Streams are appended to the already listening streams.

  3. Accept: Returns a new connected TCP Stream.

  4. Stop: Stops listening on the port.

Properties:

Methods:

Structure: