Example #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;
        }
Example #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;
        }
Example #3
0
 public PacketFactory(IPacketCodeTable packets)
 {
     this.packets = packets;
 }
Example #4
0
 public PacketFactory(IPacketCodeTable packets)
 {
     _packets = packets;
 }