Exemplo n.º 1
0
        /// <summary>
        /// Initialises the connection object, setting variables to defaults.
        /// </summary>
        /// <param name="udp">Reference to the main core engine that created the connection.</param>
        public Connection(CommonUdp udp)
        {
            EncryptionKey         = "";
            RemoteEP              = null;
            LastSentPacket        = 0;
            LastReceivedPacket    = 0;
            LastSentPacketR       = 1;
            LastReceivedPacketR   = 0;
            LastReceivedPacketSeq = 0;
            Authed          = false; //Either (server) client is authed or (client) is authed with server
            Server          = false; //Connection is a server connection
            m_Parent        = udp;
            TimeoutTime     = DateTime.Now.AddSeconds(UdpConsts.CONNECTION_TIMEOUT);
            CompoundCommand = null;
            m_RequestID     = "";

            RQueue = new ReliableQueue();
        }
Exemplo n.º 2
0
		/// <summary>
		/// Initialises the connection object, setting variables to defaults.
		/// </summary>
		/// <param name="udp">Reference to the main core engine that created the connection.</param>
        public Connection(CommonUdp udp)
        {
            EncryptionKey = "";
            RemoteEP = null;
            LastSentPacket = 0;
            LastReceivedPacket = 0;
            LastSentPacketR = 1;
            LastReceivedPacketR = 0;
			LastReceivedPacketSeq = 0;
            Authed = false; //Either (server) client is authed or (client) is authed with server
            Server = false; //Connection is a server connection
            m_Parent = udp;
            TimeoutTime = DateTime.Now.AddSeconds(UdpConsts.CONNECTION_TIMEOUT);
            CompoundCommand = null;
			m_RequestID = "";

            RQueue = new ReliableQueue();
        }