C# Class GameCommon.GameNetworkServer

Inheritance: NetworkServer
Mostrar archivo Open project: DarrenHassan/GDM4242-GroupD Class Usage Examples

Public Methods

Method Description
Dispose ( string reason ) : void
GameNetworkServer ( string serverName, string serverVersion, int maxConnections, bool entitySystemServiceEnabled ) : System

Protected Methods

Method Description
OnConnectedNodeConnectionStatusChanged ( NetworkNode connectedNode, NetworkConnectionStatuses status, string message ) : void
OnIncomingConnectionApproval ( NetworkNode connectedNode, string clientVersion, string loginName, string password, string &rejectReason ) : bool
OnReceiveProtocolError ( ConnectedNode sender, string message ) : void

Method Details

Dispose() public method

public Dispose ( string reason ) : void
reason string
return void

GameNetworkServer() public method

public GameNetworkServer ( string serverName, string serverVersion, int maxConnections, bool entitySystemServiceEnabled ) : System
serverName string
serverVersion string
maxConnections int
entitySystemServiceEnabled bool
return System

OnConnectedNodeConnectionStatusChanged() protected method

protected OnConnectedNodeConnectionStatusChanged ( NetworkNode connectedNode, NetworkConnectionStatuses status, string message ) : void
connectedNode NetworkNode
status NetworkConnectionStatuses
message string
return void

OnIncomingConnectionApproval() protected method

protected OnIncomingConnectionApproval ( NetworkNode connectedNode, string clientVersion, string loginName, string password, string &rejectReason ) : bool
connectedNode NetworkNode
clientVersion string
loginName string
password string
rejectReason string
return bool

OnReceiveProtocolError() protected method

protected OnReceiveProtocolError ( ConnectedNode sender, string message ) : void
sender ConnectedNode
message string
return void