Exemple #1
0
        /// <summary>
        ///   Constructor - should only be called by the connection manager object
        /// </summary>
        public RdpConnection(RdpConnectionManager connManager,
                             bool passive, UdpClient udpConn, IPEndPoint remoteEP,
                             int rcvMax, int rbufMax, bool sequenced)
        {
            this.connManager  = connManager;
            this.udpConn      = udpConn;
            this.remoteEP     = remoteEP;
            this.rcvMax       = rcvMax;
            this.rbufMax      = rbufMax;
            outOfOrderAllowed = !sequenced;
            valid             = true;
            sndIss            = 0; // TODO: replace with a random number?
            sndNxt            = sndIss + 1;
            sndUna            = sndIss;

            InternalOpen(passive);
        }
        /// <summary>
        ///   Constructor - should only be called by the connection manager object
        /// </summary>
        public RdpConnection(RdpConnectionManager connManager, 
                             bool passive, UdpClient udpConn, IPEndPoint remoteEP,
                             int rcvMax, int rbufMax, bool sequenced)
        {
            this.connManager = connManager;
            this.udpConn = udpConn;
            this.remoteEP = remoteEP;
            this.rcvMax = rcvMax;
            this.rbufMax = rbufMax;
            outOfOrderAllowed = !sequenced;
            valid = true;
            sndIss = 0; // TODO: replace with a random number?
            sndNxt = sndIss + 1;
            sndUna = sndIss;

            InternalOpen(passive);
        }