C# Class ArtemisComm.Connector

Inheritance: IDisposable
Mostra file Open project: russjudge/ArtemisSBS-ProtocolSharp Class Usage Examples

Public Properties

Property Type Description
ServerStream System.Net.Sockets.NetworkStream
StandardID int

Private Properties

Property Type Description
BytesToQueueProcessor void
Dispose void
RaiseBytesReceived void
RaiseExceptionEncountered void
SendProcessor void

Public Methods

Method Description
ClearSendQueue ( ) : void
Connector ( int port ) : System
Dispose ( ) : void
Send ( MemoryStream stream ) : void
Start ( TcpClient client ) : void

Starts the specified client.

Stop ( ) : void

Stops the connection

Private Methods

Method Description
BytesToQueueProcessor ( ) : void

Processes Byte from the TCP/IP stream to queue processor.

Dispose ( bool Disposing ) : void
RaiseBytesReceived ( Stream buffer ) : void
RaiseExceptionEncountered ( Exception ex ) : void
SendProcessor ( ) : void

Method Details

ClearSendQueue() public method

public ClearSendQueue ( ) : void
return void

Connector() public method

public Connector ( int port ) : System
port int
return System

Dispose() public method

public Dispose ( ) : void
return void

Send() public method

public Send ( MemoryStream stream ) : void
stream System.IO.MemoryStream
return void

Start() public method

Starts the specified client.
public Start ( TcpClient client ) : void
client System.Net.Sockets.TcpClient The client.
return void

Stop() public method

Stops the connection
public Stop ( ) : void
return void

Property Details

ServerStream public_oe property

public NetworkStream,System.Net.Sockets ServerStream
return System.Net.Sockets.NetworkStream

StandardID public_oe static_oe property

public static int StandardID
return int