Skip to content

TcpGate Class

sequenze edited this page Jun 19, 2017 · 3 revisions

Provides mechanisms for listening of incoming TCP connections, and delegates the connection back through a callback function.

Inheritance Hierarchy

Object > GateBase

Syntax

internal sealed class TcpGate : GateBase, IGate

Constructors

Name                                                             Description
TcpGate(IEncoder,ConnectionString) Initializes a new instances of the TcpGate class.

Methods

Name                                                           Description
Start(Action<IConnectionMode>) Starts the process of listening concurrently on the specified host and port.
Stop() Stops the listening process.
GetMode(ConnectionMode,IProtocol) Factorymethod returning a connectionmode object based on the specified parameters.

See Also

GateBase, IGate, IEncoder, ConnectionString, IConnectionMode, ConnectionMode, IProtocol

Clone this wiki locally