StreamTransport Class |
Namespace: Crosser.Server.Modules.Transport
public class StreamTransport : BaseTransport, IStreamTransport, IBaseTransport, IDisposable
The StreamTransport type exposes the following members.
| Name | Description | |
|---|---|---|
| StreamTransport | Initializes a new instance of the StreamTransport class |
| Name | Description | |
|---|---|---|
| ClientCertificate |
The client certificate (if any)
(Inherited from BaseTransport.) | |
| Endpoint |
Reference to the IBaseEndpoint connected to
(Inherited from BaseTransport.) | |
| Server |
Reference to the IServer (Inherited from BaseTransport.) |
| Name | Description | |
|---|---|---|
| CreateStreamsT(Socket) |
Overwrite this when you create custom Transports for socket communication
(Inherited from BaseTransport.) | |
| CreateStreamsT(Stream) |
Setup read/write streams and set the IProtocol (Overrides BaseTransportCreateStreamsT(Stream).) | |
| Dispose |
Clean up resources and dispose
(Overrides BaseTransportDispose.) | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| Flush |
Flush the underlying stream
(Overrides BaseTransportFlush.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ReadAsync(Byte, Int32) |
Reads data from the underlying stream
(Overrides BaseTransportReadAsync(Byte, Int32).) | |
| ReadAsync(Byte, Int32, Int32) |
Reads data from the underlying stream
(Overrides BaseTransportReadAsync(Byte, Int32, Int32).) | |
| ReadOp |
Reads the next byte from the underlying stream
(Overrides BaseTransportReadOp.) | |
| RemoteAddress |
If your transport supports remote address you can overwrite this to return teh correct IP etc.
(Inherited from BaseTransport.) | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) | |
| WriteAsync(Byte, Boolean) |
Write data to the underlying stream
(Overrides BaseTransportWriteAsync(Byte, Boolean).) | |
| WriteAsync(Byte, Int32, Int32, Boolean) |
Write data to the underlying stream
(Overrides BaseTransportWriteAsync(Byte, Int32, Int32, Boolean).) |
| Name | Description | |
|---|---|---|
| CancellationTokenSource |
CancellationToken used when readin/writing to streams
(Inherited from BaseTransport.) | |
| disposed |
Flag for knowing if the transport is disposed
(Inherited from BaseTransport.) | |
| locker |
Object for locking operations on the Transport
(Inherited from BaseTransport.) | |
| Protocol |
Reference to the IProtocol using the Transport
(Inherited from BaseTransport.) | |
| Reader |
The binary reader
| |
| Writer |
The binary writer
|