C# Class Agnos.Transports.BaseTransport

implements the common logic that is shared between (virtually) all concrete transports
Inheritance: ITransport
Afficher le fichier Open project: tomerfiliba/agnos

Protected Properties

Свойство Type Description
compressionBuffer System.IO.MemoryStream
compressionThreshold int
inStream Stream
outStream Stream
readStream Agnos.Utils.BoundInputStream
rlock Agnos.Utils.ReentrantLock
wbuffer System.IO.MemoryStream
wlock Agnos.Utils.ReentrantLock
wseq int

Méthodes publiques

Méthode Description
BaseTransport ( Stream inOutStream ) : System.Text
BaseTransport ( Stream inStream, Stream outStream ) : System.Text
BeginRead ( ) : int
BeginWrite ( int seq ) : void
CancelWrite ( ) : void
Close ( ) : void
DisableCompression ( ) : void
Dispose ( ) : void
EnableCompression ( ) : bool
EndRead ( ) : void
EndWrite ( ) : void
GetInputStream ( ) : Stream
GetOutputStream ( ) : Stream
IsCompressionEnabled ( ) : bool
Read ( byte data, int offset, int len ) : int
RestartWrite ( ) : void
Write ( byte data, int offset, int len ) : void

Méthodes protégées

Méthode Description
AssertBeganRead ( ) : void
AssertBeganWrite ( ) : void
getCompressionThreshold ( ) : int

returns the compression threshold (packets larger than this threshold will be compressed). this method is expected to be overriden by implementing classes

readSInt32 ( Stream stream ) : int
writeSInt32 ( Stream stream, int val ) : void

Private Methods

Méthode Description
repr ( byte arr ) : String
repr ( byte arr, int offset, int len ) : String

Method Details

AssertBeganRead() protected méthode

protected AssertBeganRead ( ) : void
Résultat void

AssertBeganWrite() protected méthode

protected AssertBeganWrite ( ) : void
Résultat void

BaseTransport() public méthode

public BaseTransport ( Stream inOutStream ) : System.Text
inOutStream Stream
Résultat System.Text

BaseTransport() public méthode

public BaseTransport ( Stream inStream, Stream outStream ) : System.Text
inStream Stream
outStream Stream
Résultat System.Text

BeginRead() public méthode

public BeginRead ( ) : int
Résultat int

BeginWrite() public méthode

public BeginWrite ( int seq ) : void
seq int
Résultat void

CancelWrite() public méthode

public CancelWrite ( ) : void
Résultat void

Close() public méthode

public Close ( ) : void
Résultat void

DisableCompression() public méthode

public DisableCompression ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

EnableCompression() public méthode

public EnableCompression ( ) : bool
Résultat bool

EndRead() public méthode

public EndRead ( ) : void
Résultat void

EndWrite() public méthode

public EndWrite ( ) : void
Résultat void

GetInputStream() public méthode

public GetInputStream ( ) : Stream
Résultat Stream

GetOutputStream() public méthode

public GetOutputStream ( ) : Stream
Résultat Stream

IsCompressionEnabled() public méthode

public IsCompressionEnabled ( ) : bool
Résultat bool

Read() public méthode

public Read ( byte data, int offset, int len ) : int
data byte
offset int
len int
Résultat int

RestartWrite() public méthode

public RestartWrite ( ) : void
Résultat void

Write() public méthode

public Write ( byte data, int offset, int len ) : void
data byte
offset int
len int
Résultat void

getCompressionThreshold() protected méthode

returns the compression threshold (packets larger than this threshold will be compressed). this method is expected to be overriden by implementing classes
protected getCompressionThreshold ( ) : int
Résultat int

readSInt32() protected static méthode

protected static readSInt32 ( Stream stream ) : int
stream Stream
Résultat int

writeSInt32() protected static méthode

protected static writeSInt32 ( Stream stream, int val ) : void
stream Stream
val int
Résultat void

Property Details

compressionBuffer protected_oe property

protected MemoryStream,System.IO compressionBuffer
Résultat System.IO.MemoryStream

compressionThreshold protected_oe property

protected int compressionThreshold
Résultat int

inStream protected_oe property

protected Stream inStream
Résultat Stream

outStream protected_oe property

protected Stream outStream
Résultat Stream

readStream protected_oe property

protected BoundInputStream,Agnos.Utils readStream
Résultat Agnos.Utils.BoundInputStream

rlock protected_oe property

protected ReentrantLock,Agnos.Utils rlock
Résultat Agnos.Utils.ReentrantLock

wbuffer protected_oe property

protected MemoryStream,System.IO wbuffer
Résultat System.IO.MemoryStream

wlock protected_oe property

protected ReentrantLock,Agnos.Utils wlock
Résultat Agnos.Utils.ReentrantLock

wseq protected_oe property

protected int wseq
Résultat int