nd_packet_iterator

Name

nd_packet_iterator -- 

Synopsis



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

Description

Details

nd_pit_init ()

gboolean    nd_pit_init                     (LND_PacketIterator *pit,
                                             LND_Trace *trace);

pit :

iterator to initialize.

trace :

trace whose packets are to be iterated.

Returns :

TRUE when iterator initialization was successful, FALSE otherwise.


nd_pit_init_mode ()

gboolean    nd_pit_init_mode                (LND_PacketIterator *pit,
                                             LND_Trace *trace,
                                             LND_PacketIteratorMode mode);

pit :

trace :

mode :

Returns :


nd_pit_get ()

LND_Packet* nd_pit_get                      (LND_PacketIterator *pit);

Accessor function, returns the packet the iterator currently points to.

pit :

iterator to retrieve current packet from.

Returns :

currently iterated packet.


nd_pit_next ()

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.

pit :

iterator to advance

Returns :

next packet.


nd_pit_get_index

#define nd_pit_get_index   libnd_pit_get_index

Returns :


nd_pit_is_current

#define nd_pit_is_current  libnd_pit_is_current

Returns :