AddSession() private method

private AddSession ( Session session ) : ushort
session Session
return ushort
Ejemplo n.º 1
0
        internal Session(Connection connection, Begin begin)
        {
            this.connection = connection;
            this.channel = connection.AddSession(this);
            this.handleMax = begin.HandleMax;
            this.localLinks = new Link[1];
            this.remoteLinks = new Link[1];
            this.incomingList = new LinkedList();
            this.outgoingList = new LinkedList();
            this.nextOutgoingId = uint.MaxValue - 2u;
            this.outgoingWindow = begin.IncomingWindow;
            this.incomingDeliveryId = uint.MaxValue;

            begin.NextOutgoingId = this.nextOutgoingId;
            this.state = State.BeginSent;
            this.SendBegin(begin);
        }
Ejemplo n.º 2
0
        internal Session(Connection connection, Begin begin)
        {
            this.connection         = connection;
            this.channel            = connection.AddSession(this);
            this.handleMax          = begin.HandleMax;
            this.localLinks         = new Link[1];
            this.remoteLinks        = new Link[1];
            this.incomingList       = new LinkedList();
            this.outgoingList       = new LinkedList();
            this.nextOutgoingId     = uint.MaxValue - 2u;
            this.outgoingWindow     = begin.IncomingWindow;
            this.incomingDeliveryId = uint.MaxValue;

            begin.NextOutgoingId = this.nextOutgoingId;
            this.state           = State.BeginSent;
            this.SendBegin(begin);
        }