public NetBase(int maxConnections, NetConfig config) { network = new NetManager(this, maxConnections, config.Key); handlers = new Dictionary <NetPacketType, MessageDelegate>(); config.Configure(network); writer = new NetDataWriter(); }
public NetServer(int port, int maxConnections, NetConfig config) : base(maxConnections, config) { outputMessages = new Queue <NetMessage>(); clients = new List <NetPeer>(); listenPort = port; ready = false; }
public NetBase(NetConfig config) : this(1, config) { }
public NetServer(int port, NetConfig config) : this(port, 8, config) { }
public NetClient(NetConfig config) : base(config) { outputMessages = new Queue <PacketBase>(); outputLock = new object(); connected = false; }