C# Class Schumix.Framework.Listener.SchumixPacketHandler

显示文件 Open project: Schumix/Schumix2

Public Methods

Method Description
GetPacketMethodMap ( ) : PacketMethod>.Dictionary
HandlePacket ( ListenerPacket packet, TcpClient client, NetworkStream stream ) : void
Init ( ) : void
RegisterHandler ( ListenerOpcode packetid, SchumixPacketHandlerDelegate method ) : void
RemoveHandler ( ListenerOpcode packetid ) : void
RemoveHandler ( ListenerOpcode packetid, SchumixPacketHandlerDelegate method ) : void
SendPacketBack ( ListenerPacket packet, NetworkStream stream, string hst, int backport ) : void
SendPacketBackAllHost ( ListenerPacket packet ) : void

Private Methods

Method Description
AuthRequestPacketHandler ( ListenerPacket pck, NetworkStream stream, string hst, int bck ) : void
CacheDBHandler ( ListenerPacket pck, NetworkStream stream, string hst, int bck ) : void
CloseHandler ( ListenerPacket pck, NetworkStream stream, string hst, int bck ) : void
HandlePingTimer ( object sender, System.Timers.ElapsedEventArgs e ) : void
PingHandler ( ListenerPacket pck, NetworkStream stream, string hst, int bck ) : void
PongHandler ( ListenerPacket pck, NetworkStream stream, string hst, int bck ) : void
SchumixPacketHandler ( ) : System
SchumixVersionHandler ( ListenerPacket pck, NetworkStream stream, string hst, int bck ) : void
UpdateDBHandler ( ListenerPacket pck, NetworkStream stream, string hst, int bck ) : void

Method Details

GetPacketMethodMap() public method

public GetPacketMethodMap ( ) : PacketMethod>.Dictionary
return PacketMethod>.Dictionary

HandlePacket() public method

public HandlePacket ( ListenerPacket packet, TcpClient client, NetworkStream stream ) : void
packet ListenerPacket
client System.Net.Sockets.TcpClient
stream System.Net.Sockets.NetworkStream
return void

Init() public method

public Init ( ) : void
return void

RegisterHandler() public method

public RegisterHandler ( ListenerOpcode packetid, SchumixPacketHandlerDelegate method ) : void
packetid ListenerOpcode
method SchumixPacketHandlerDelegate
return void

RemoveHandler() public method

public RemoveHandler ( ListenerOpcode packetid ) : void
packetid ListenerOpcode
return void

RemoveHandler() public method

public RemoveHandler ( ListenerOpcode packetid, SchumixPacketHandlerDelegate method ) : void
packetid ListenerOpcode
method SchumixPacketHandlerDelegate
return void

SendPacketBack() public method

public SendPacketBack ( ListenerPacket packet, NetworkStream stream, string hst, int backport ) : void
packet ListenerPacket
stream System.Net.Sockets.NetworkStream
hst string
backport int
return void

SendPacketBackAllHost() public method

public SendPacketBackAllHost ( ListenerPacket packet ) : void
packet ListenerPacket
return void