コード例 #1
0
ファイル: Connections.cs プロジェクト: nicoletagaina/PR_lab
        /// <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();
        }
コード例 #2
0
ファイル: Connections.cs プロジェクト: nicoletagaina/PR_lab
 public ConnectionList(GenesisUDP udp)
 {
     m_Parent = udp;
 }
コード例 #3
0
ファイル: ConnTimeout.cs プロジェクト: nicoletagaina/PR_lab
 public ConnTimeout(GenesisUDP parent)
 {
     m_Parent = parent;
 }