Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 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();
        }