public Flow(ulong id, string signature, string name, Peer peer, BaseRtmfpProtocol handler, Session band,FlowWriter flowWriter)
{
Id = id;
StreamId = signature.ToBytes().Read7BitValue(4);
Peer = peer;
Handler = handler;
Band = band;
if (flowWriter == null || flowWriter.Signature!=signature)
Writer = new FlowWriter(signature, band, id) {Obj = name};
else
{
Writer = flowWriter;
Writer.FlowId = id;
}
}