Squishy.Network.Throttle.Add C# (CSharp) Method

Add() public method

Adds a new connection to this throttle.
public Add ( Connection con ) : void
con Connection
return void
        public void Add(Connection con)
        {
            lock (conLock)
            {
                con.SetThrottle(this);
                cons.Add(con);
            }
            if (Active)
            {
                if (ThrottlesDownload)
                    AdjustReceiveBuffer();
                if (ThrottlesUpload)
                    AdjustSendBuffer();
            }
        }