X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Examples%2FDVBAdapter%2FMPEdec.cc;h=556c53ee8b2c4b80557c31d36673732994d9adab;hb=61b2e2ea5cb50df90931acf3fcd840493ba762a9;hp=b32417ed038a7f7430f15889d9da06dc48fc4b79;hpb=739eecfbeffc911e700660864ff1d7f05c6283d0;p=senf.git diff --git a/Examples/DVBAdapter/MPEdec.cc b/Examples/DVBAdapter/MPEdec.cc index b32417e..556c53e 100644 --- a/Examples/DVBAdapter/MPEdec.cc +++ b/Examples/DVBAdapter/MPEdec.cc @@ -1,9 +1,9 @@ // $Id$ // // Copyright (C) 2007 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) -// Thorsten Horstmann +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Thorsten Horstmann // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -27,11 +27,11 @@ #include #include #include -#include +#include #include #include -#include +#include #include #include #include @@ -48,7 +48,7 @@ class MySniffer public: MySniffer(unsigned short adapter=0, unsigned short device=0) - : handle( adapter, device ) + : handle( adapter, device ) { struct dmx_sct_filter_params sec_filter; memset(&sec_filter, 0, sizeof (struct dmx_sct_filter_params)); @@ -59,16 +59,16 @@ public: sec_filter.flags |= DMX_CHECK_CRC; handle.protocol().setSectionFilter( &sec_filter ); - + senf::Scheduler::instance().add( handle, senf::membind(&MySniffer::dumpSection, this)); } private: - void dumpSection(senf::FileHandle /* ignored */, senf::Scheduler::EventId event) + void dumpSection(senf::Scheduler::EventId event) { std::string data (handle.read()); - senf::DatagramSection section (senf::DatagramSection::create(data)); + senf::MPESection section (senf::MPESection::create(data)); section.dump(std::cout); senf::PacketData & datagramData (section.next().data()); senf::hexdump(datagramData.begin(), datagramData.end(), std::cout); @@ -98,6 +98,6 @@ int main(int argc, char const * argv[]) // c-file-style: "senf" // indent-tabs-mode: nil // ispell-local-dictionary: "american" -// compile-command: "scons -u test" +// compile-command: "scons -u" // comment-column: 40 // End: