TCPConnectionListener Constructor (SendReceiveOptions, ApplicationLayerProtocolStatus, SSLOptions, Boolean)NetworkComms.Net Help
Create a new instance of a TCP listener

Namespace: NetworkCommsDotNet.Connections.TCP
Assembly: NetworkCommsDotNet (in NetworkCommsDotNet.dll) Version: (

public TCPConnectionListener(
	SendReceiveOptions sendReceiveOptions,
	ApplicationLayerProtocolStatus applicationLayerProtocol,
	SSLOptions sslOptions,
	bool allowDiscoverable = false


Type: NetworkCommsDotNet SendReceiveOptions
The SendReceiveOptions to use with incoming data on this listener
Type: NetworkCommsDotNet.Connections ApplicationLayerProtocolStatus
If enabled NetworkComms.Net uses a custom application layer protocol to provide useful features such as inline serialisation, transparent packet transmission, remote peer handshake and information etc. We strongly recommend you enable the NetworkComms.Net application layer protocol.
Type: NetworkCommsDotNet.Connections.TCP SSLOptions
The SSLOptions to use with this listener
allowDiscoverable (Optional)
Type: OnlineSystem Boolean
Determines if the newly created ConnectionListenerBase will be discoverable if PeerDiscovery is enabled.
See Also