Exemple #1
0
        ///////////////////////////////////////////////////////////////////////////////////////////////

        public virtual StreamTranslation GetEnvironmentOutputTranslation(StreamTranslation translation)
        {
            CheckDisposed();

            return((translation == StreamTranslation.environment) ?
                   GetEnvironmentOutputTranslation() : translation);
        }
Exemple #2
0
        ///////////////////////////////////////////////////////////////////////////////////////////////

        #region Public Constructors
        public ChannelStream(
            Stream stream,
            ChannelType channelType,
            OptionDictionary options,
            StreamFlags flags,
            StreamTranslation inTranslation,
            StreamTranslation outTranslation
            )
            : this()
        {
            this.stream         = stream;
            this.channelType    = channelType;
            this.options        = options;
            this.flags          = flags;
            this.inTranslation  = inTranslation;
            this.outTranslation = outTranslation;
        }
Exemple #3
0
        ///////////////////////////////////////////////////////////////////////////////////////////////

        internal ChannelStream(
            Socket socket,
            int timeout,
            ChannelType channelType,
            OptionDictionary options,
            StreamFlags flags,
            StreamTranslation inTranslation,
            StreamTranslation outTranslation
            )
            : this()
        {
            this.socket         = socket;
            this.timeout        = timeout;
            this.channelType    = channelType;
            this.options        = options;
            this.flags          = flags;
            this.inTranslation  = inTranslation;
            this.outTranslation = outTranslation;
        }
Exemple #4
0
        ///////////////////////////////////////////////////////////////////////////////////////////////

        public Channel(
            Stream stream,
            ChannelType channelType,
            OptionDictionary options,
            StreamFlags flags,
            StreamTranslation inTranslation,
            StreamTranslation outTranslation,
            Encoding encoding,
            bool appendMode,
            bool autoFlush,
            IClientData clientData
            )
            : this()
        {
            this.stream = new ChannelStream(
                stream, channelType, options, flags, inTranslation,
                outTranslation);

            this.encoding   = encoding;
            this.appendMode = appendMode;
            this.autoFlush  = autoFlush;
            this.clientData = clientData;
        }