Click or drag to resize

CrosserTransport Class

Transport for Crosser Protocol
Inheritance Hierarchy

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

The CrosserTransport type exposes the following members.

Constructors
  NameDescription
Public methodCrosserTransport
Initializes a new instance of the CrosserTransport class
Top
Properties
  NameDescription
Public propertyClientCertificate
The client certificate (if any)
(Inherited from BaseTransport.)
Public propertyEndpoint
Reference to the IBaseEndpoint connected to
(Inherited from BaseTransport.)
Protected propertyServer
Reference to the IServer
(Inherited from BaseTransport.)
Top
Methods
  NameDescription
Public methodCreateStreamsT(Stream)
Overwrite this when you create custom Transports for streamed communication
(Inherited from BaseTransport.)
Public methodCreateStreamsT(Socket)
Setup read/write streams and set the IProtocol Will also send back info message about the Crosser Endpoint connected to
(Overrides SocketTransportCreateStreamsT(Socket).)
Public methodDispose
Clean up resources
(Inherited from SocketTransport.)
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
Flush the underlying stream
(Inherited from SocketTransport.)
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)
Reads data from the underlying stream
(Inherited from SocketTransport.)
Public methodReadAsync(Byte, Int32, Int32)
Reads data from the underlying stream
(Inherited from SocketTransport.)
Public methodReadOp
Reads the next byte from the underlying stream
(Inherited from SocketTransport.)
Public methodRemoteAddress
Returns the IP-address of the client as a string
(Inherited from SocketTransport.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWriteAsync(Byte, Boolean)
Write data to the underlying stream
(Inherited from SocketTransport.)
Public methodWriteAsync(Byte, Int32, Int32, Boolean)
Write data to the underlying stream
(Inherited from SocketTransport.)
Top
Fields
  NameDescription
Protected fieldCancellationTokenSource
CancellationToken used when readin/writing to streams
(Inherited from BaseTransport.)
Protected fielddisposed
Flag for knowing if the transport is disposed
(Inherited from BaseTransport.)
Protected fieldlocker
Object for locking operations on the Transport
(Inherited from BaseTransport.)
Protected fieldProtocol
Reference to the IProtocol using the Transport
(Inherited from BaseTransport.)
Protected fieldReadStream
Read stream
(Inherited from SocketTransport.)
Protected fieldWriteStream
Write stream
(Inherited from SocketTransport.)
Top
See Also