Logo Search packages:      
Sourcecode: paris-traceroute version File versions  Download package

Probe Class Reference

#include <Probe.h>

Inheritance diagram for Probe:

Datagram ICMPProbe TCPProbe UDPProbe

List of all members.


Detailed Description

Abstract - Generic form of a probe.

Definition at line 21 of file Probe.h.


Public Member Functions

void addHeader (Header *h)
virtual void dump ()=0
 Debug.
virtual void dumpRaw ()=0
 Debug.
void getDatagram (uint8 **data, int *length)
 Get this probe in a packet form.
HeadergetHeader (int index)
virtual int getID ()=0
 Return the ID of this probe.
int getNbrHeaders ()
void packData (uint8 *data, int length, int offset)
void send ()
 Send this probe.
void setData (const uint8 *data, int length)

Static Public Member Functions

static ProbeprobeFactory (const char *protocol, const char *src_addr, int src_port, uint32 dst_addr, int dst_port, uint8 ttl, uint8 tos, int data_length, uint16 proc_id, uint16 id, bool reset)

Public Attributes

uint8 * data
int data_length

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index