Click or drag to resize

BaseTransport Class

Base for all transports
Inheritance Hierarchy

Namespace:  Crosser.Server.Modules.Transport
Assembly:  Crosser.Server (in Crosser.Server.dll) Version: 0.0.5
Syntax
C#
public abstract class BaseTransport : IBaseTransport, 
	IDisposable

The BaseTransport type exposes the following members.

Constructors
  NameDescription
Protected methodBaseTransport
Initializes a new instance of the BaseTransport class
Top
Properties
  NameDescription
Public propertyClientCertificate
The client certificate (if any)
Public propertyEndpoint
Reference to the IBaseEndpoint connected to
Protected propertyServer
Reference to the IServer
Top
Methods
  NameDescription
Public methodCreateStreamsT(Stream)
Overwrite this when you create custom Transports for streamed communication
Public methodCreateStreamsT(Socket)
Overwrite this when you create custom Transports for socket communication
Public methodDispose
Overwrite this in your custom transport to dispose of used resources
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFlush
Overwrite this in your custom transport to flush to the underlying stream
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReadAsync(Byte, Int32)
Overwrite this in your custom transport to read from the transport
Public methodReadAsync(Byte, Int32, Int32)
Overwrite this in your custom transport to read from the transport
Public methodReadOp
Overwrite this in your custom transport to read the next byte from the transport
Public methodRemoteAddress
If your transport supports remote address you can overwrite this to return teh correct IP etc.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWriteAsync(Byte, Boolean)
Overwrite this in your custom transport to write to the transport
Public methodWriteAsync(Byte, Int32, Int32, Boolean)
Overwrite this in your custom transport to write to the transport
Top
Fields
  NameDescription
Protected fieldCancellationTokenSource
CancellationToken used when readin/writing to streams
Protected fielddisposed
Flag for knowing if the transport is disposed
Protected fieldlocker
Object for locking operations on the Transport
Protected fieldProtocol
Reference to the IProtocol using the Transport
Top
See Also