PeerCastStation.Core.OutputStreamBase.OutputStreamBase C# (CSharp) Метод

OutputStreamBase() публичный Метод

元になるストリーム、チャンネル、リクエストからHTTPOutputStreamを初期化します
public OutputStreamBase ( PeerCastStation.Core.PeerCast peercast, Stream input_stream, Stream output_stream, EndPoint remote_endpoint, AccessControlInfo access_control, Channel channel, byte header ) : System
peercast PeerCastStation.Core.PeerCast 所属するPeerCast
input_stream Stream 元になる受信ストリーム
output_stream Stream 元になる送信ストリーム
remote_endpoint System.Net.EndPoint 接続先のアドレス
access_control AccessControlInfo 接続可否および認証の情報
channel Channel 所属するチャンネル。無い場合はnull
header byte
Результат System
    public OutputStreamBase(
      PeerCast peercast,
      Stream input_stream,
      Stream output_stream,
      EndPoint remote_endpoint,
      AccessControlInfo access_control,
      Channel channel,
      byte[] header)
    {
      this.Logger = new Logger(this.GetType());
      this.connection = new ConnectionStream(
        header!=null && header.Length>0 ? new PrependedStream(header, input_stream) : input_stream,
        output_stream);
      this.connection.ReadTimeout = 10000;
      this.connection.WriteTimeout = 10000;
      this.PeerCast = peercast;
      this.RemoteEndPoint = remote_endpoint;
      this.AccessControlInfo = access_control;
      this.Channel = channel;
      var ip = remote_endpoint as IPEndPoint;
      this.IsLocal = ip!=null ? ip.Address.IsSiteLocal() : true;
    }