示例#1
0
        public Channel(ConnectionService connectionService,
                       uint clientChannelId, uint clientInitialWindowSize, uint clientMaxPacketSize,
                       uint serverChannelId)
        {
            Contract.Requires(connectionService != null);

            _connectionService = connectionService;

            ClientChannelId         = clientChannelId;
            ClientInitialWindowSize = clientInitialWindowSize;
            ClientWindowSize        = clientInitialWindowSize;
            ClientMaxPacketSize     = clientMaxPacketSize;

            ServerChannelId         = serverChannelId;
            ServerInitialWindowSize = Session.InitialLocalWindowSize;
            ServerWindowSize        = Session.InitialLocalWindowSize;
            ServerMaxPacketSize     = Session.LocalChannelDataPacketSize;
        }
示例#2
0
        protected Channel(ConnectionService connectionService,
                          uint clientChannelId, uint clientInitialWindowSize, uint clientMaxPacketSize,
                          uint serverChannelId)
        {
            Contract.Requires(connectionService != null);

            this.ConnectionService = connectionService;

            this.ClientChannelId         = clientChannelId;
            this.ClientInitialWindowSize = clientInitialWindowSize;
            this.ClientWindowSize        = clientInitialWindowSize;
            this.ClientMaxPacketSize     = clientMaxPacketSize;

            this.ServerChannelId         = serverChannelId;
            this.ServerInitialWindowSize = Session.InitialLocalWindowSize;
            this.ServerWindowSize        = Session.InitialLocalWindowSize;
            this.ServerMaxPacketSize     = Session.LocalChannelDataPacketSize;

            this.WhenConnected = DateTime.Now;
        }
示例#3
0
 public SessionChannel(ConnectionService connectionService,
                       uint clientChannelId, uint clientInitialWindowSize, uint clientMaxPacketSize,
                       uint serverChannelId)
     : base(connectionService, clientChannelId, clientInitialWindowSize, clientMaxPacketSize, serverChannelId)
 {
 }