Click or drag to resize

SocketTransport Class

Base for all socket based transports
Inheritance Hierarchy

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

The SocketTransport type exposes the following members.

Constructors
  NameDescription
Protected methodSocketTransport
Initializes a new instance of the SocketTransport 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
(Overrides BaseTransportCreateStreamsT(Socket).)
Public methodDispose
Clean up resources
(Overrides BaseTransportDispose.)
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
(Overrides BaseTransportFlush.)
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
(Overrides BaseTransportReadAsync(Byte, Int32).)
Public methodReadAsync(Byte, Int32, Int32)
Reads data from the underlying stream
(Overrides BaseTransportReadAsync(Byte, Int32, Int32).)
Public methodReadOp
Reads the next byte from the underlying stream
(Overrides BaseTransportReadOp.)
Public methodRemoteAddress
Returns the IP-address of the client as a string
(Overrides BaseTransportRemoteAddress.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWriteAsync(Byte, Boolean)
Write data to the underlying stream
(Overrides BaseTransportWriteAsync(Byte, Boolean).)
Public methodWriteAsync(Byte, Int32, Int32, Boolean)
Write data to the underlying stream
(Overrides BaseTransportWriteAsync(Byte, Int32, Int32, Boolean).)
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
Protected fieldWriteStream
Write stream
Top
See Also