Class FixMessageChopper.ReadOnlyTransport
Inheritance
System.Object
FixMessageChopper.ReadOnlyTransport
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 class ReadOnlyTransport : ITransport
Constructors
ReadOnlyTransport(Stream)
Declaration
public ReadOnlyTransport(Stream inputStream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | inputStream |
Properties
IsBlockingSocket
Declaration
public virtual bool IsBlockingSocket { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsOpen
Returns true if transport is open.
Declaration
public virtual bool IsOpen { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsSecured
Returns true, if connected through secured connection.
Declaration
public virtual bool IsSecured { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
LocalEndPoint
Gets local IPEndPint after the transport connected.
Declaration
public IPEndPoint LocalEndPoint { get; }
Property Value
Type | Description |
---|---|
System.Net.IPEndPoint |
RemoteEndPoint
Gets the remote IPEndPoint after the transport connected.
Declaration
public IPEndPoint RemoteEndPoint { get; }
Property Value
Type | Description |
---|---|
System.Net.IPEndPoint |
Methods
Close()
Close the transport.
Declaration
public virtual void Close()
Exceptions
Type | Condition |
---|---|
System.IO.IOException |
|
Open()
Open the transport.
Declaration
public virtual void Open()
Exceptions
Type | Condition |
---|---|
System.IO.IOException |
|
Read(ByteBuffer)
Declaration
public virtual int Read(ByteBuffer buffer)
Parameters
Type | Name | Description |
---|---|---|
ByteBuffer | buffer |
Returns
Type | Description |
---|---|
System.Int32 |
Read(ByteBuffer, Int32, Int32)
Declaration
public virtual int Read(ByteBuffer buffer, int offset, int length)
Parameters
Type | Name | Description |
---|---|---|
ByteBuffer | buffer | |
System.Int32 | offset | |
System.Int32 | length |
Returns
Type | Description |
---|---|
System.Int32 |
Read(Byte[])
Transport dependent read method.
Declaration
public virtual int Read(byte[] buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buffer | holder for read bytes |
Returns
Type | Description |
---|---|
System.Int32 | number of byte actually read |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | if unable to read |
Read(Byte[], Int32, Int32)
Transport dependent read method.
Declaration
public virtual int Read(byte[] buffer, int offset, int length)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buffer | holder for read bytes |
System.Int32 | offset | in buffer |
System.Int32 | length | maximum bytes to be read |
Returns
Type | Description |
---|---|
System.Int32 | number of byte actually read |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | if unable to read |
WaitUntilReadyToWrite()
Declaration
public virtual void WaitUntilReadyToWrite()
Write(ByteBuffer)
Declaration
public virtual int Write(ByteBuffer buffer)
Parameters
Type | Name | Description |
---|---|---|
ByteBuffer | buffer |
Returns
Type | Description |
---|---|
System.Int32 |
Write(ByteBuffer, Int32, Int32)
Declaration
public virtual int Write(ByteBuffer buffer, int offset, int length)
Parameters
Type | Name | Description |
---|---|---|
ByteBuffer | buffer | |
System.Int32 | offset | |
System.Int32 | length |
Returns
Type | Description |
---|---|
System.Int32 |
Write(Byte[])
Transport dependent write method.
Declaration
public virtual void Write(byte[] message)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | message | actual message |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | if unable to write |
Write(Byte[], Int32, Int32)
Transport dependent write method.
Declaration
public virtual int Write(byte[] message, int offset, int length)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | message | actual message |
System.Int32 | offset | the offset in buffer |
System.Int32 | length | the num of bytes to write |
Returns
Type | Description |
---|---|
System.Int32 |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | if unable to write |