Hashtable unsafepackethandlers = new Hashtable(); // packets which dont have correct sharedsecret, or sharedsecret not yet validated

        #endregion Fields

        #region Constructors

        public NetworkLevel2Connection( NetworkLevel2Controller parent, ConnectionInfo connectioninfo, bool isserver )
        {
            LogFile.WriteLine("NetworkLevel2Connection()");

            networkimplementation = parent.networkimplementation;
            this.connectioninfo = connectioninfo;

            this.parent = parent;
            //this.connection = connectioninfo.Connection;
            this.isserver = isserver;

            lasttimestamp = DateTime.Now;

            packetreferencecontroller = new NetPacketReferenceController( this, isserver );
            sharedsecretexchange = new NetSharedSecretExchange( this, isserver );
            //sharedsecretexchange.Tick();
        }
예제 #2
0
        public NetworkLevel2Connection(NetworkLevel2Controller parent, ConnectionInfo connectioninfo, bool isserver)
        {
            LogFile.WriteLine("NetworkLevel2Connection()");

            networkimplementation = parent.networkimplementation;
            this.connectioninfo   = connectioninfo;

            this.parent = parent;
            //this.connection = connectioninfo.Connection;
            this.isserver = isserver;

            lasttimestamp = DateTime.Now;

            packetreferencecontroller = new NetPacketReferenceController(this, isserver);
            sharedsecretexchange      = new NetSharedSecretExchange(this, isserver);
            //sharedsecretexchange.Tick();
        }