BaseTransport Class |
Namespace: Crosser.Server.Modules.Transport
public abstract class BaseTransport : IBaseTransport, IDisposable
The BaseTransport type exposes the following members.
Name | Description | |
---|---|---|
![]() | BaseTransport | Initializes a new instance of the BaseTransport class |
Name | Description | |
---|---|---|
![]() | ClientCertificate |
The client certificate (if any)
|
![]() | Endpoint |
Reference to the IBaseEndpoint connected to
|
![]() | Server |
Reference to the IServer |
Name | Description | |
---|---|---|
![]() | CreateStreamsT(Stream) |
Overwrite this when you create custom Transports for streamed communication
|
![]() | CreateStreamsT(Socket) |
Overwrite this when you create custom Transports for socket communication
|
![]() | Dispose |
Overwrite this in your custom transport to dispose of used resources
|
![]() | 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 |
Overwrite this in your custom transport to flush to the underlying stream
|
![]() | 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) |
Overwrite this in your custom transport to read from the transport
|
![]() | ReadAsync(Byte, Int32, Int32) |
Overwrite this in your custom transport to read from the transport
|
![]() | ReadOp |
Overwrite this in your custom transport to read the next byte from the transport
|
![]() | RemoteAddress |
If your transport supports remote address you can overwrite this to return teh correct IP etc.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | WriteAsync(Byte, Boolean) |
Overwrite this in your custom transport to write to the transport
|
![]() | WriteAsync(Byte, Int32, Int32, Boolean) |
Overwrite this in your custom transport to write to the transport
|
Name | Description | |
---|---|---|
![]() | CancellationTokenSource |
CancellationToken used when readin/writing to streams
|
![]() | disposed |
Flag for knowing if the transport is disposed
|
![]() | locker |
Object for locking operations on the Transport
|
![]() | Protocol |
Reference to the IProtocol using the Transport
|