C# Class SimpleTCP.SimpleTcpClient

Inheritance: IDisposable
Datei anzeigen Open project: BrandonPotter/SimpleTCP Class Usage Examples

Private Properties

Property Type Description
ListenerLoop void
NotifyDelimiterMessageRx void
NotifyEndTransmissionRx void
RunLoopStep void
StartRxThread void

Public Methods

Method Description
Connect ( string hostNameOrIpAddress, int port ) : SimpleTcpClient
Disconnect ( ) : SimpleTcpClient
Dispose ( ) : void
SimpleTcpClient ( ) : System
Write ( byte data ) : void
Write ( string data ) : void
WriteLine ( string data ) : void
WriteLineAndGetReply ( string data, System.TimeSpan timeout ) : Message

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
ListenerLoop ( object state ) : void
NotifyDelimiterMessageRx ( TcpClient client, byte msg ) : void
NotifyEndTransmissionRx ( TcpClient client, byte msg ) : void
RunLoopStep ( ) : void
StartRxThread ( ) : void

Method Details

Connect() public method

public Connect ( string hostNameOrIpAddress, int port ) : SimpleTcpClient
hostNameOrIpAddress string
port int
return SimpleTcpClient

Disconnect() public method

public Disconnect ( ) : SimpleTcpClient
return SimpleTcpClient

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

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

SimpleTcpClient() public method

public SimpleTcpClient ( ) : System
return System

Write() public method

public Write ( byte data ) : void
data byte
return void

Write() public method

public Write ( string data ) : void
data string
return void

WriteLine() public method

public WriteLine ( string data ) : void
data string
return void

WriteLineAndGetReply() public method

public WriteLineAndGetReply ( string data, System.TimeSpan timeout ) : Message
data string
timeout System.TimeSpan
return Message