C# Class Helios.RawSocket.SocketClient

Exibir arquivo Open project: helios-io/helios

Public Properties

Property Type Description
Connection IConnection
RemoteHost INode

Public Methods

Method Description
AttemptConnect ( string host, string portStr ) : bool
SocketClient ( ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
AppendStatusText ( string text ) : void
ConnectionEstablishedCallback ( INode remoteAddress, IConnection responseChannel ) : void
ConnectionTerminatedCallback ( HeliosConnectionException reason, IConnection closedChannel ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

ReceivedDataCallback ( NetworkData incomingData, IConnection responseChannel ) : void
btnConnect_Click ( object sender, EventArgs e ) : void
btnDisconnect_Click ( object sender, EventArgs e ) : void
btnSend_Click ( object sender, EventArgs e ) : void

Method Details

AttemptConnect() public method

public AttemptConnect ( string host, string portStr ) : bool
host string
portStr string
return bool

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

SocketClient() public method

public SocketClient ( ) : System
return System

Property Details

Connection public_oe property

public IConnection Connection
return IConnection

RemoteHost public_oe property

public INode RemoteHost
return INode