Click or drag to resize

IBaseTransport Interface

Base definition for all transports

Namespace:  Crosser.Common.Server.Transport
Assembly:  Crosser.Common (in Crosser.Common.dll) Version: 0.0.4
Syntax
C#
public interface IBaseTransport : IDisposable

The IBaseTransport type exposes the following members.

Properties
  NameDescription
Public propertyEndpoint
The IBaseEndpoint that the client connected to
Top
Methods
  NameDescription
Public methodCreateStreamsT(Stream)
Setup the underlying streams for the transport
Public methodCreateStreamsT(Socket)
Setup the underlying streams for the transport
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodFlush
Make sure that data is sent
Public methodReadAsync(Byte, Int32)
Read data from the transport into the buffer
Public methodReadAsync(Byte, Int32, Int32)
Read data from the transport into the buffer
Public methodReadOp
Reads the next byte from the underlying transport
Public methodRemoteAddress
If your transport supports remote address you can overwrite this to return teh correct IP etc.
Public methodWriteAsync(Byte, Boolean)
Write bytes to the underlying transport
Public methodWriteAsync(Byte, Int32, Int32, Boolean)
Write bytes to the underlying transport
Top
See Also