showPkt, showPktMatch - display an orb packet for debugging purposes
#include "Pkt.h" ;
void showPkt(int pktid, char *srcname,
double pkttime, char *packet,
int nbytes, FILE *file, int mode)
void showPktMatch(int pktid, char *srcname,
double pkttime, char *packet,
int nbytes, FILE *file, char *match, int mode)
showPkt displays the input pktid, srcname, pkttime,
packet, nbytes with on the specified output file.
The output verbosity depends on the mode.
showPktMatch is identical, except that only channels where the string <sta>_<chan>
matches the input regular expression match are shown in the verbose modes for waveform
packets.
-
PKT_TERSE
print just the orb packet paramaters: pktid, srcname, pkttime, nbytes.
(These are always shown).
-
PKT_DUMP
Dump the packet in hexadecimal format.
-
PKT_UNSTUFF
Unstuff the packet and print out the unstuffed contents, including data
samples.
-
PKT_PEEK
Unstuff the packet and print out 10 samples of data
samples.
-
PKT_NOSAMPLES
Unstuff the packet and print out the unstuffed contents, except for data
samples.
$(ORBLIBS)
unstuffPkt(3)
orbstat(1)
showPkt uses elog_debug(3) to print out the packet header, and so it
typically writes to stderr instead of the supplied file parameter.
Daniel Quinlan
Table of Contents
Antelope Release 4.8 Darwin 8.8.0 2006-12-19
Boulder Real Time Technologies, Inc
For more information, contact support@brtt.com