C# Class TrinityCore_Manager.Clients.TCPClient

Inheritance: TrinityCore_Manager.TCM.TCMClient, IDisposable
Mostra file Open project: TrinityCore-Manager/TrinityCore-Manager-v3

Public Methods

Method Description
Connect ( ) : void

Connect To Server

Disconnect ( ) : void

Disconnect from server

Dispose ( ) : void
Dispose ( bool disposing ) : void
Send ( string message ) : System.Threading.Tasks.Task

Send a message to the server

SendMessage ( string message ) : System.Threading.Tasks.Task
Start ( ) : void
Stop ( ) : void
TCPClient ( string host, int port ) : System

Private Methods

Method Description
Connected ( IAsyncResult iar ) : void
ProcessReceive ( int read ) : void
Receive ( IAsyncResult iar ) : void
Send ( IAsyncResult iar ) : void

Method Details

Connect() public method

Connect To Server
public Connect ( ) : void
return void

Disconnect() public method

Disconnect from server
public Disconnect ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() public method

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

Send() public method

Send a message to the server
public Send ( string message ) : System.Threading.Tasks.Task
message string The message to send
return System.Threading.Tasks.Task

SendMessage() public method

public SendMessage ( string message ) : System.Threading.Tasks.Task
message string
return System.Threading.Tasks.Task

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

TCPClient() public method

public TCPClient ( string host, int port ) : System
host string
port int
return System