C# Class NFrame.NFNetModule

Inheritance: NFILogicModule
Show file Open project: ketoo/NFrame Class Usage Examples

Public Methods

Method Description
GetNetHandler ( ) : NFNetHandler
Initialization ( UInt32 nMaxClient, UInt16 nPort ) : int
Initialization ( string strIP, UInt16 nPort ) : int
NFToPB ( NFrame xID ) : Ident
PBToNF ( NFMsg xID ) : NFGUID
SendMsg ( int nMsgID, int nSockIndex, string msg ) : int
SendMsgPB ( int nMsgID, int nSockIndex, NFMsg xData ) : int
SendMsgToAllClient ( int nMsgID, string msg ) : int

Private Methods

Method Description
OnRecivePack ( UInt32 nSockIndex, UInt16 nMsgID, string msg, NFINet pNet ) : void
OnSocketEvent ( UInt32 nSockIndex, NFINet eEvent, NFINet pNet ) : void

Method Details

GetNetHandler() public method

public GetNetHandler ( ) : NFNetHandler
return NFNetHandler

Initialization() public method

public Initialization ( UInt32 nMaxClient, UInt16 nPort ) : int
nMaxClient System.UInt32
nPort System.UInt16
return int

Initialization() public method

public Initialization ( string strIP, UInt16 nPort ) : int
strIP string
nPort System.UInt16
return int

NFToPB() public static method

public static NFToPB ( NFrame xID ) : Ident
xID NFrame
return NFMsg.Ident

PBToNF() public static method

public static PBToNF ( NFMsg xID ) : NFGUID
xID NFMsg
return NFGUID

SendMsg() public method

public SendMsg ( int nMsgID, int nSockIndex, string msg ) : int
nMsgID int
nSockIndex int
msg string
return int

SendMsgPB() public method

public SendMsgPB ( int nMsgID, int nSockIndex, NFMsg xData ) : int
nMsgID int
nSockIndex int
xData NFMsg
return int

SendMsgToAllClient() public method

public SendMsgToAllClient ( int nMsgID, string msg ) : int
nMsgID int
msg string
return int