C# Class CommunicationHandler

Inheritance: IDisposable
显示文件 Open project: BornToGrill/Project-Frequency Class Usage Examples

Public Methods

Method Description
CommunicationHandler ( NetworkLibrary.TcpClient serverCon, IErrorHandler error, IInvokable invoke, INotifiable notify, ILobby lobby ) : System
Dispose ( ) : void
SendTcp ( string message ) : void
SetErrorHandler ( IErrorHandler errorHandler ) : void
SetGuid ( string guid ) : void
SetProcessor ( DataProcessor, processor ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
TcpClient_DataReceived ( NetworkLibrary.TcpDataReceivedEventArgs e ) : void
TcpClient_Disconnnected ( NetworkLibrary.TcpClient sender ) : void

Method Details

CommunicationHandler() public method

public CommunicationHandler ( NetworkLibrary.TcpClient serverCon, IErrorHandler error, IInvokable invoke, INotifiable notify, ILobby lobby ) : System
serverCon NetworkLibrary.TcpClient
error IErrorHandler
invoke IInvokable
notify INotifiable
lobby ILobby
return System

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

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

SendTcp() public method

public SendTcp ( string message ) : void
message string
return void

SetErrorHandler() public method

public SetErrorHandler ( IErrorHandler errorHandler ) : void
errorHandler IErrorHandler
return void

SetGuid() public method

public SetGuid ( string guid ) : void
guid string
return void

SetProcessor() public method

public SetProcessor ( DataProcessor, processor ) : void
processor DataProcessor,
return void