Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ServerSession"/> class.
        /// </summary>
        public ServerSession(IPacketCodeTable packetCodeTable)
        {
            NetworkSessionId = RollingNetworkSessionId.Increment();

            _isPushing = false;
            _packets   = new ConcurrentQueue <byte[]>();

            _packetCodeTable = packetCodeTable;

            PacketReceived += HandlePacketReceived;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ServerSession"/> class.
        /// </summary>
        public ServerSession(IPacketCodeTable packetCodeTable)
        {
            this.NetworkSessionId = RollingNetworkSessionId.Increment();

            this.isPushing = false;
            this.packets = new ConcurrentQueue<byte[]>();

            this.packetCodeTable = packetCodeTable;

            this.PacketReceived += this.HandlePacketReceived;
        }
Exemplo n.º 3
0
 public PacketFactory(IPacketCodeTable packets)
 {
     this.packets = packets;
 }
Exemplo n.º 4
0
 public PacketFactory(IPacketCodeTable packets)
 {
     _packets = packets;
 }