FlowStream::FlowStream(UInt64 id,const string& signature,Peer& peer,Invoker& invoker,BandWriter& band) : Flow(id,signature,_Name,peer,invoker,band),_pPublication(NULL),_state(IDLE),_numberLostFragments(0),_pListener(NULL) { PacketReader reader((const UInt8*)signature.c_str(),signature.length()); reader.next(4); _index = reader.read7BitValue(); Publications::Iterator it = invoker.publications(_index); if(it!=invoker.publications.end()) _pPublication = it->second; }