C# Class NFrame.NFCNet

Inheritance: NFINet
Mostrar archivo Open project: ketoo/NFrame

Public Methods

Method Description
CloseNetObject ( UInt32 nSockIndex ) : int
Final ( ) : bool
Initialization ( UInt32 nMaxClient, UInt16 nPort ) : int
Initialization ( string strIP, UInt16 nPort ) : void
IsServer ( ) : int
Log ( int severity, string msg ) : int
NFCNet ( OnSocketEvent xEventHandler, OnRecivePack xPackHandler ) : System
SendMsgToAllClientWithOutHead ( UInt16 nMsgID, string msg ) : bool
SendMsgWithOutHead ( UInt16 nMsgID, string msg, List fdList ) : bool
SendMsgWithOutHead ( UInt16 nMsgID, string msg, UInt32 nSockIndex ) : bool

Method Details

CloseNetObject() public method

public CloseNetObject ( UInt32 nSockIndex ) : int
nSockIndex System.UInt32
return int

Final() public method

public Final ( ) : bool
return bool

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 ) : void
strIP string
nPort System.UInt16
return void

IsServer() public method

public IsServer ( ) : int
return int

Log() public method

public Log ( int severity, string msg ) : int
severity int
msg string
return int

NFCNet() public method

public NFCNet ( OnSocketEvent xEventHandler, OnRecivePack xPackHandler ) : System
xEventHandler OnSocketEvent
xPackHandler OnRecivePack
return System

SendMsgToAllClientWithOutHead() public method

public SendMsgToAllClientWithOutHead ( UInt16 nMsgID, string msg ) : bool
nMsgID System.UInt16
msg string
return bool

SendMsgWithOutHead() public method

public SendMsgWithOutHead ( UInt16 nMsgID, string msg, List fdList ) : bool
nMsgID System.UInt16
msg string
fdList List
return bool

SendMsgWithOutHead() public method

public SendMsgWithOutHead ( UInt16 nMsgID, string msg, UInt32 nSockIndex ) : bool
nMsgID System.UInt16
msg string
nSockIndex System.UInt32
return bool