Class TcpServer
TCP server implementation.
Inheritance
System.Object
TcpServer
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: FixAntenna.FixEngine.Transport.Server.Tcp
Assembly: FixAntenna.Core.dll
Syntax
public class TcpServer : IServer
Constructors
TcpServer(Int32)
Creates server.
Declaration
public TcpServer(int port)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | port | server port |
TcpServer(String, Int32, ConfigurationAdaptor)
Creates server.
Declaration
public TcpServer(string host, int port, ConfigurationAdaptor configAdapter)
Parameters
Type | Name | Description |
---|---|---|
System.String | host | |
System.Int32 | port | |
ConfigurationAdaptor | configAdapter |
Properties
ConnectAddress
Represents specific NIC
Declaration
public string ConnectAddress { get; }
Property Value
Type | Description |
---|---|
System.String |
Port
Listening port of the server.
Declaration
public int Port { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
SetIncomingConnectionListener(IConnectionListener)
Sets the connection listener.
Declaration
public virtual void SetIncomingConnectionListener(IConnectionListener value)
Parameters
Type | Name | Description |
---|---|---|
IConnectionListener | value | the connection listener |
Start()
Start the server.
Declaration
public virtual void Start()
Exceptions
Type | Condition |
---|---|
System.IO.IOException |
|
Stop()
Stop server.
Declaration
public virtual void Stop()
Exceptions
Type | Condition |
---|---|
System.IO.IOException |
|
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()