C# Class Asgard.BifrostServer

Inheritance: Connection, ISystem
显示文件 Open project: enBask/Asgard Class Usage Examples

Public Methods

Method Description
BifrostServer ( int port, int maxconnections ) : System
GetStats ( ) : NetStats
Send ( Asgard.Core.Network.Packets.Packet packet, IList sendToList, IList excludeGroup, int channel ) : void
Send ( Asgard.Core.Network.Packets.Packet packet, IList sendToList, NetNode excludeNode = null, int channel ) : void
Start ( ) : bool
Stop ( ) : bool
Tick ( double tick ) : void

Private Methods

Method Description
OnRaiseConnectedEvent ( NetConnection connection ) : void
OnRaiseDisconnectedEvent ( NetConnection connection ) : void
RegisterPacketCallbacks ( ) : void
pumpNetwork ( ) : void

Method Details

BifrostServer() public method

public BifrostServer ( int port, int maxconnections ) : System
port int
maxconnections int
return System

GetStats() public method

public GetStats ( ) : NetStats
return Asgard.Core.Network.NetStats

Send() public method

public Send ( Asgard.Core.Network.Packets.Packet packet, IList sendToList, IList excludeGroup, int channel ) : void
packet Asgard.Core.Network.Packets.Packet
sendToList IList
excludeGroup IList
channel int
return void

Send() public method

public Send ( Asgard.Core.Network.Packets.Packet packet, IList sendToList, NetNode excludeNode = null, int channel ) : void
packet Asgard.Core.Network.Packets.Packet
sendToList IList
excludeNode NetNode
channel int
return void

Start() public method

public Start ( ) : bool
return bool

Stop() public method

public Stop ( ) : bool
return bool

Tick() public method

public Tick ( double tick ) : void
tick double
return void