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;
}