C# Class Cuke4Nuke.Core.Listener

Show file Open project: richardlawrence/Cuke4Nuke

Public Properties

Property Type Description
MessageLogged EventHandler

Protected Properties

Property Type Description
Started System.Threading.AutoResetEvent
Stopped System.Threading.AutoResetEvent

Public Methods

Method Description
Listener ( IProcessor processor, int port ) : System
Start ( ) : void
Stop ( ) : void
Write ( string response, StreamWriter writer ) : void

Protected Methods

Method Description
GetRequest ( StreamReader reader ) : string
Log ( string message ) : void
Process ( TcpClient client ) : void
Run ( ) : void
WaitForClientToConnect ( TcpListener listener ) : TcpClient

Private Methods

Method Description
StartTcpListener ( ) : TcpListener

Method Details

GetRequest() protected method

protected GetRequest ( StreamReader reader ) : string
reader System.IO.StreamReader
return string

Listener() public method

public Listener ( IProcessor processor, int port ) : System
processor IProcessor
port int
return System

Log() protected method

protected Log ( string message ) : void
message string
return void

Process() protected method

protected Process ( TcpClient client ) : void
client System.Net.Sockets.TcpClient
return void

Run() protected method

protected Run ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

WaitForClientToConnect() protected method

protected WaitForClientToConnect ( TcpListener listener ) : TcpClient
listener System.Net.Sockets.TcpListener
return System.Net.Sockets.TcpClient

Write() public method

public Write ( string response, StreamWriter writer ) : void
response string
writer System.IO.StreamWriter
return void

Property Details

MessageLogged public property

public EventHandler MessageLogged
return EventHandler

Started protected property

protected AutoResetEvent,System.Threading Started
return System.Threading.AutoResetEvent

Stopped protected property

protected AutoResetEvent,System.Threading Stopped
return System.Threading.AutoResetEvent