gboolean nd_pit_init (LND_PacketIterator *pit, LND_Trace *trace); gboolean nd_pit_init_mode (LND_PacketIterator *pit, LND_Trace *trace, LND_PacketIteratorMode mode); LND_Packet* nd_pit_get (LND_PacketIterator *pit); LND_Packet* nd_pit_next (LND_PacketIterator *pit); #define nd_pit_get_index #define nd_pit_is_current |
gboolean nd_pit_init (LND_PacketIterator *pit, LND_Trace *trace); |
iterator to initialize.
trace whose packets are to be iterated.
TRUE when iterator initialization was successful, FALSE otherwise.
gboolean nd_pit_init_mode (LND_PacketIterator *pit, LND_Trace *trace, LND_PacketIteratorMode mode); |
LND_Packet* nd_pit_get (LND_PacketIterator *pit); |
Accessor function, returns the packet the iterator currently points to.
iterator to retrieve current packet from.
currently iterated packet.
LND_Packet* nd_pit_next (LND_PacketIterator *pit); |
This function advances the iterator, and returns that packet. If there are no more packets, NULL is returned. Upon advancing the iterator, the progressbar and the packet's tcpdump line automatically get updated.
iterator to advance
next packet.