Class AbstractFixTransport
The abstract fix transport implementation, provides the base functionality for subclasses.
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)
System.Object.ToString()
Namespace: FixAntenna.FixEngine.Transport
Assembly: FixAntenna.Core.dll
Syntax
public abstract class AbstractFixTransport : IFixTransport
Constructors
AbstractFixTransport(ITransport, Config)
Creates the AbstractFIXTransport
.
Declaration
protected AbstractFixTransport(ITransport transport, Config configuration)
Parameters
Type | Name | Description |
---|---|---|
ITransport | transport | |
Config | configuration |
AbstractFixTransport(ITransport, SessionParameters)
Creates the AbstractFIXTransport
.
Declaration
protected AbstractFixTransport(ITransport transport, SessionParameters parameters)
Parameters
Type | Name | Description |
---|---|---|
ITransport | transport | |
SessionParameters | parameters |
Fields
ConfigAdapter
Declaration
protected ConfigurationAdaptor ConfigAdapter
Field Value
Type | Description |
---|---|
ConfigurationAdaptor |
Log
Declaration
protected ILog Log
Field Value
Type | Description |
---|---|
ILog |
TlsEnabled
Declaration
protected bool TlsEnabled
Field Value
Type | Description |
---|---|
System.Boolean |
Transport
Declaration
protected ITransport Transport
Field Value
Type | Description |
---|---|
ITransport |
Properties
IsBlockingSocket
Declaration
public virtual bool IsBlockingSocket { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
MessageReadTimeInTicks
Declaration
public virtual long MessageReadTimeInTicks { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
OptimalBufferSize
Gets optimal the size of buffer.
Declaration
public virtual int OptimalBufferSize { get; }
Property Value
Type | Description |
---|---|
System.Int32 | the buffer size in bytes |
RemoteHost
Gets remote host.
Declaration
public virtual string RemoteHost { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Close()
Close transport method.
Declaration
public virtual void Close()
Exceptions
Type | Condition |
---|---|
System.IO.IOException | if error occurred |
ReadMessage(MsgBuf)
Read message method.
Declaration
public virtual void ReadMessage(MsgBuf buf)
Parameters
Type | Name | Description |
---|---|---|
MsgBuf | buf |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | if error occurred |
Reset()
Declaration
protected virtual void Reset()
WaitUntilReadyToWrite()
Declaration
public virtual void WaitUntilReadyToWrite()
Write(ByteBuffer, Int32, Int32)
Declaration
public virtual int Write(ByteBuffer message, int offset, int length)
Parameters
Type | Name | Description |
---|---|---|
ByteBuffer | message | |
System.Int32 | offset | |
System.Int32 | length |
Returns
Type | Description |
---|---|
System.Int32 |
Write(Byte[])
Write message method.
Declaration
public virtual void Write(byte[] message)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | message | the message |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | if error occurred |
Write(Byte[], Int32, Int32)
Write message method.
Declaration
public virtual int Write(byte[] message, int offset, int length)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | message | the message |
System.Int32 | offset | the start buffer position |
System.Int32 | length | the length |
Returns
Type | Description |
---|---|
System.Int32 |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | if error occurred |