Back to index

natlog  0.91.0
display.cc
Go to the documentation of this file.
00001 #include "pcaprecord.ih"
00002 
00003 ostream &PcapRecord::display(ostream &stdMsg, Record const *record) const
00004 {
00005     Address &&src = sourceIP(*record);
00006     Address &&via = viaIP(*record);
00007     Address &&dst = destIP(*record);
00008 
00009     return stdMsg << ' ' << 
00010                 src.dottedDecimalAddress() << ':' << src.port() << 
00011            " (via: " << 
00012                 via.dottedDecimalAddress() << ':' << via.port() << ") "
00013             "to " << 
00014                 dst.dottedDecimalAddress() << ':' << dst.port();
00015 }