C# Class Iaik.Utils.Net.FrontEndConnection

Implements the IFrontEndConnection interface for common usage. This class can not be instantiated, use one of the implementations. Derived classes need to specify the FrontEndConnectionAttribute to identify the connections. If the attribute is not defined a NotSupportedException is thrown
Inheritance: Stream
Exibir arquivo Open project: areiter/InMemoryFuzzing

Protected Properties

Property Type Description
_logger log4net.ILog
_syncLock object

Public Methods

Method Description
Close ( ) : void

Closes the connection to the remote host

Connect ( ) : void

Connects to the remote host

Flush ( ) : void
FrontEndConnection ( ) : System
Read ( byte buffer, int offset, int length ) : int
ReadByte ( ) : int
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int length ) : void
WriteByte ( byte value ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void
RaiseConnectedEvent ( ) : void
RaiseDisconnectedEvent ( ) : void

Method Details

Close() public abstract method

Closes the connection to the remote host
public abstract Close ( ) : void
return void

Connect() public abstract method

Connects to the remote host
public abstract Connect ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Flush() public abstract method

public abstract Flush ( ) : void
return void

FrontEndConnection() public method

public FrontEndConnection ( ) : System
return System

RaiseConnectedEvent() protected method

protected RaiseConnectedEvent ( ) : void
return void

RaiseDisconnectedEvent() protected method

protected RaiseDisconnectedEvent ( ) : void
return void

Read() public abstract method

public abstract Read ( byte buffer, int offset, int length ) : int
buffer byte
offset int
length int
return int

ReadByte() public method

public ReadByte ( ) : int
return int

Seek() public method

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
return long

SetLength() public method

public SetLength ( long value ) : void
value long
return void

Write() public abstract method

public abstract Write ( byte buffer, int offset, int length ) : void
buffer byte
offset int
length int
return void

WriteByte() public method

public WriteByte ( byte value ) : void
value byte
return void

Property Details

_logger protected_oe property

Logger
protected ILog,log4net _logger
return log4net.ILog

_syncLock protected_oe property

Locks the connection, according to microsoft lock(this) is bad practise ;-)
protected object _syncLock
return object