Exemplo n.º 1
0
 public Connection(CommonUdp udp)
 {
     this.EncryptionKey         = "";
     this.RemoteEP              = null;
     this.LastSentPacket        = 0u;
     this.LastReceivedPacket    = 0u;
     this.LastSentPacketR       = 1u;
     this.LastReceivedPacketR   = 0u;
     this.LastReceivedPacketSeq = 0u;
     this.Authed          = false;
     this.Server          = false;
     this.m_Parent        = udp;
     this.TimeoutTime     = DateTime.Now.AddSeconds((double)UdpConsts.CONNECTION_TIMEOUT);
     this.CompoundCommand = null;
     this.m_RequestID     = "";
     this.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();
        }
Exemplo n.º 3
0
 public ConnectionList(CommonUdp udp)
 {
     m_Parent = udp;
 }
Exemplo n.º 4
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.º 5
0
 public ConnTimeout(CommonUdp parent)
 {
     this.m_Parent = parent;
 }
Exemplo n.º 6
0
 public ConnectionList(CommonUdp udp)
 {
     m_Parent = udp;
 }
Exemplo n.º 7
0
		public ConnTimeout(CommonUdp parent)
		{
			m_Parent = parent;
		}