C# Class LoginServer.Program

Show file Open project: dream-young-soul/soul

Public Properties

Property Type Description
mDBPacket InternalPacket
mTcpClient GameBase.Network.TcpClient
m_DicSession GameBase.Network.GameSession>.Dictionary
m_GameServerIP string
m_GameServerPort int
m_Key int
m_Key2 int
server TcpServer

Public Methods

Method Description
FindGameSessionToGameID ( uint gameid ) : GameSession
LogicTimer ( ) : void
OnClose ( Socket s ) : void
OnConnect ( Socket s ) : void
OnReceive ( Socket s, byte data, int nSize ) : void
ProcessDBNetMsg ( ) : void
Run ( ) : void
SendConnectMapServer ( GameSession session, int key, int key2 ) : void

Private Methods

Method Description
Main ( string args ) : void
OnDBClose ( Socket s ) : void
OnDBConnect ( bool isSucceed ) : void
OnDBReceive ( byte data, int nSize ) : void

Method Details

FindGameSessionToGameID() public static method

public static FindGameSessionToGameID ( uint gameid ) : GameSession
gameid uint
return GameSession

LogicTimer() public static method

public static LogicTimer ( ) : void
return void

OnClose() public static method

public static OnClose ( Socket s ) : void
s Socket
return void

OnConnect() public static method

public static OnConnect ( Socket s ) : void
s Socket
return void

OnReceive() public static method

public static OnReceive ( Socket s, byte data, int nSize ) : void
s Socket
data byte
nSize int
return void

ProcessDBNetMsg() public static method

public static ProcessDBNetMsg ( ) : void
return void

Run() public static method

public static Run ( ) : void
return void

SendConnectMapServer() public static method

public static SendConnectMapServer ( GameSession session, int key, int key2 ) : void
session GameSession
key int
key2 int
return void

Property Details

mDBPacket public static property

public static InternalPacket mDBPacket
return InternalPacket

mTcpClient public static property

public static TcpClient,GameBase.Network mTcpClient
return GameBase.Network.TcpClient

m_DicSession public static property

public static Dictionary m_DicSession
return GameBase.Network.GameSession>.Dictionary

m_GameServerIP public static property

public static string m_GameServerIP
return string

m_GameServerPort public static property

public static int m_GameServerPort
return int

m_Key public static property

public static int m_Key
return int

m_Key2 public static property

public static int m_Key2
return int

server public static property

public static TcpServer server
return TcpServer