コード例 #1
0
ファイル: Channel.cs プロジェクト: mikaelliljedahl/SSHServer
        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)
 {
 }