From: dw6 Date: Fri, 11 Jan 2008 15:45:54 +0000 (+0000) Subject: implementing initial dump X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=be8bc80707001db2db2e62991fa098ca33f7c017;p=senf.git implementing initial dump git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@592 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Packets/MPEGDVBBundle/DTCPPacket.cc b/Packets/MPEGDVBBundle/DTCPPacket.cc index 75c191e..eb52136 100644 --- a/Packets/MPEGDVBBundle/DTCPPacket.cc +++ b/Packets/MPEGDVBBundle/DTCPPacket.cc @@ -22,3 +22,25 @@ #include "DTCPPacket.hh" +#include +#include + +#define prefix_ + +prefix_ void senf::DTCPPacketType::dump(packet p, std::ostream & os) +{ + boost::io::ios_all_saver ias(os); + os << "DTCPPacket" << std::endl + << " version : " << p->version_number() << std::endl + << " command : " << p->command() << std::endl + << " interval : " << p->interval() << std::endl + << " sequence_number : " << p->sequence_number() << std::endl + << " receive_capable_feed : " << p->receive_capable_feed() << std::endl + << " ip_version : " << p->ip_version() << std::endl + << " tunnel_protocol : " << p->tunnel_protocol() << std::endl + ; + + //TODO: print included IPs +} + +#undef prefix_