ServerTcp

Wed May 28 15:13:27 EDT 2008

This connector creates a socket server on this host, where one or more client applications may connect and transmit events. This implementation can support multiple simultaneous clients (if configured so). Clients can connect/disconnect for each event, or stay connected indefinitely.

This conector will start a socket server on the given local host interface and port number, waiting for data source clients to connect and send data. The number of simultaneous connections can be specified by the "source.server-tcp.limit" configuration parameter. The default is one. A value greater than one will allow multiple data sources to be multiplexed into one stream. Any subsequent client connection attempts beyond the limit will receive the message, "Sorry, too many clients.", and then be immediately disconnected.

Multiple data sources connected to the same ServerTcp connector may each send data at any time. The data is collated per buffer "read", which should keep short messages (<< 8kb) intact. However, it is possible that longer messages sent at the same time may be interleaved. If this is a concern, then the "source.server-tcp.limit" configuration parameter should not be set greater than "1".

The Transmission Control Protocol (TCP) is for connection-based, guaranteed communications of data streams. It is defined in RFC 761: http://www.faqs.org/rfcs/rfc761.html