C# Class HaloOnline.Server.Core.Log.ConnectionHandler

Datei anzeigen Open project: no1dead/HaloMasterMaster Class Usage Examples

Public Methods

Method Description
BeginConnection ( AsyncCallback connectionCallback ) : IAsyncResult
ConnectionHandler ( TcpClient client, IConnection connection, int clientPort ) : System

Private Methods

Method Description
CreateDummyPacket ( byte messageType, string content, int packetSize ) : byte[]
Disconnect ( ) : void
DoBeginConnection ( ) : void
LogMessage ( IPEndPoint endPoint, byte buffer, int commandSize, MessageType messageType ) : void
ReadCallback ( IAsyncResult ar ) : void
ReadCommand ( IPEndPoint endPoint, byte buffer ) : void
ReplyWithDummyData ( IPEndPoint endPoint ) : void

Method Details

BeginConnection() public method

public BeginConnection ( AsyncCallback connectionCallback ) : IAsyncResult
connectionCallback AsyncCallback
return IAsyncResult

ConnectionHandler() public method

public ConnectionHandler ( TcpClient client, IConnection connection, int clientPort ) : System
client System.Net.Sockets.TcpClient
connection IConnection
clientPort int
return System