Beispiel #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(GenesisUDP 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(GenesisConsts.CONNECTION_TIMEOUT);
            CompoundCommand = null;
            m_RequestID     = "";

            RQueue = new ReliableQueue();
        }
Beispiel #2
0
 public ConnectionList(GenesisUDP udp)
 {
     m_Parent = udp;
 }
Beispiel #3
0
 public ConnTimeout(GenesisUDP parent)
 {
     m_Parent = parent;
 }