C# Class cs_elbot.TCPWrapper

description of TCPWrapper.
显示文件 Open project: Sir-Odie/CS-ELBot Class Usage Examples

Public Properties

Property Type Description
AutoReconnect bool
HostIp System.Net.IPAddress
Port int

Public Methods

Method Description
DisconnectFromServer ( ) : void
ReconnectToServer ( ) : void
Send ( byte data ) : int
TCPWrapper ( TCPClient TheTCPClient, Logger MyLogger ) : System

Protected Methods

Method Description
OnGotConnected ( EventArgs e ) : void
OnGotDisconnected ( EventArgs e ) : void

Private Methods

Method Description
ConnectToServer ( ) : bool
GotData ( object Sender, TCPClient e ) : void
GotServerConnected ( object Sender, System e ) : void
GotServerDisconnected ( object Sender, EventArgs e ) : void
OnGotCommand ( GotCommandEventArgs e ) : void
OnSentCommand ( SentCommandEventArgs e ) : void

Method Details

DisconnectFromServer() public method

public DisconnectFromServer ( ) : void
return void

OnGotConnected() protected method

protected OnGotConnected ( EventArgs e ) : void
e System.EventArgs
return void

OnGotDisconnected() protected method

protected OnGotDisconnected ( EventArgs e ) : void
e System.EventArgs
return void

ReconnectToServer() public method

public ReconnectToServer ( ) : void
return void

Send() public method

public Send ( byte data ) : int
data byte
return int

TCPWrapper() public method

public TCPWrapper ( TCPClient TheTCPClient, Logger MyLogger ) : System
TheTCPClient TCPClient
MyLogger Logger
return System

Property Details

AutoReconnect public_oe property

public bool AutoReconnect
return bool

HostIp public_oe property

public System.Net.IPAddress HostIp
return System.Net.IPAddress

Port public_oe property

public int Port
return int