C# Class DBServer.SessionManager

显示文件 Open project: dream-young-soul/soul Class Usage Examples

Public Methods

Method Description
AddSession ( Socket s, TcpServer server ) : void
FindSessionToSocket ( Socket s ) : InternalSession
Instance ( ) : SessionManager
ReceiveData ( Socket s, byte data, int nSize ) : void
RemoveSession ( Socket s ) : void
Run ( ) : void
SendLoginServer ( byte data ) : void
SendMapServer ( int mapid, byte data ) : void
SessionManager ( ) : System

Method Details

AddSession() public method

public AddSession ( Socket s, TcpServer server ) : void
s System.Net.Sockets.Socket
server GameBase.Network.TcpServer
return void

FindSessionToSocket() public method

public FindSessionToSocket ( Socket s ) : InternalSession
s System.Net.Sockets.Socket
return InternalSession

Instance() public static method

public static Instance ( ) : SessionManager
return SessionManager

ReceiveData() public method

public ReceiveData ( Socket s, byte data, int nSize ) : void
s System.Net.Sockets.Socket
data byte
nSize int
return void

RemoveSession() public method

public RemoveSession ( Socket s ) : void
s System.Net.Sockets.Socket
return void

Run() public method

public Run ( ) : void
return void

SendLoginServer() public method

public SendLoginServer ( byte data ) : void
data byte
return void

SendMapServer() public method

public SendMapServer ( int mapid, byte data ) : void
mapid int
data byte
return void

SessionManager() public method

public SessionManager ( ) : System
return System