40#ifndef UWPOLLING_CMN_HDR_H
41#define UWPOLLING_CMN_HDR_H
50 (hdr_PROBE::access(p))
51#define HDR_TRIGGER(p) \
52 (hdr_TRIGGER::access(p))
56#define HDR_AUV_MULE(p) \
57 (hdr_AUV_MULE::access( \
60#define HDR_ACK_SINK(p) \
61 (hdr_ACK_SINK::access(p))
63#define HDR_PROBE_SINK(p) \
64 (hdr_PROBE_SINK::access( \
74static const int MAX_POLLED_NODE = 4000;
75static const double MIN_T_POLL = 5;
76static const double MIN_T_DATA = 5;
77static const int MAX_BUFFER_SIZE =
79static const int prop_speed =
368 std::vector<uint16_t> &
Definition uwpolling_cmn_hdr.h:83
double t_wait_
Definition uwpolling_cmn_hdr.h:85
int id_
Definition uwpolling_cmn_hdr.h:84
Definition uwpolling_cmn_hdr.h:361
static int offset_
Definition uwpolling_cmn_hdr.h:363
static struct hdr_ACK_SINK * access(const Packet *p)
Definition uwpolling_cmn_hdr.h:384
static int & offset()
Definition uwpolling_cmn_hdr.h:378
std::vector< uint16_t > & id_ack()
Definition uwpolling_cmn_hdr.h:369
std::vector< uint16_t > id_ack_
Definition uwpolling_cmn_hdr.h:362
Definition uwpolling_cmn_hdr.h:318
uint16_t pkt_uid_
Definition uwpolling_cmn_hdr.h:320
uint16_t & last_pkt_uid()
Definition uwpolling_cmn_hdr.h:337
static int offset_
Definition uwpolling_cmn_hdr.h:322
static int & offset()
Definition uwpolling_cmn_hdr.h:346
static struct hdr_AUV_MULE * access(const Packet *p)
Definition uwpolling_cmn_hdr.h:352
uint16_t last_pkt_uid_
Definition uwpolling_cmn_hdr.h:321
uint16_t & pkt_uid()
Definition uwpolling_cmn_hdr.h:328
Definition uwpolling_cmn_hdr.h:144
int id_
Definition uwpolling_cmn_hdr.h:145
int & ID()
Definition uwpolling_cmn_hdr.h:154
uint16_t POLL_time_
Definition uwpolling_cmn_hdr.h:147
static struct hdr_POLL * access(const Packet *p)
Definition uwpolling_cmn_hdr.h:184
static int & offset()
Definition uwpolling_cmn_hdr.h:178
uint16_t & POLL_time()
Definition uwpolling_cmn_hdr.h:169
uint & POLL_uid()
Definition uwpolling_cmn_hdr.h:163
uint POLL_uid_
Definition uwpolling_cmn_hdr.h:146
static int offset_
Definition uwpolling_cmn_hdr.h:148
Definition uwpolling_cmn_hdr.h:266
uint id_sink_
Definition uwpolling_cmn_hdr.h:267
uint16_t & id_ack()
Definition uwpolling_cmn_hdr.h:294
uint & PROBE_uid()
Definition uwpolling_cmn_hdr.h:285
static struct hdr_PROBE_SINK * access(const Packet *p)
Definition uwpolling_cmn_hdr.h:309
static int offset_
Definition uwpolling_cmn_hdr.h:270
uint16_t id_ack_
Definition uwpolling_cmn_hdr.h:269
uint & id_sink()
Definition uwpolling_cmn_hdr.h:276
uint PROBE_uid_
Definition uwpolling_cmn_hdr.h:268
static int & offset()
Definition uwpolling_cmn_hdr.h:303
Definition uwpolling_cmn_hdr.h:193
uint PROBE_uid_
Definition uwpolling_cmn_hdr.h:199
static int offset_
Definition uwpolling_cmn_hdr.h:200
static int & offset()
Definition uwpolling_cmn_hdr.h:251
uint & id_node()
Definition uwpolling_cmn_hdr.h:233
uint16_t & ts()
Definition uwpolling_cmn_hdr.h:206
uint & PROBE_uid()
Definition uwpolling_cmn_hdr.h:242
uint16_t ts_
Definition uwpolling_cmn_hdr.h:195
static struct hdr_PROBE * access(const Packet *p)
Definition uwpolling_cmn_hdr.h:257
int & n_pkts()
Definition uwpolling_cmn_hdr.h:224
uint id_node_
Definition uwpolling_cmn_hdr.h:198
int n_pkts_
Definition uwpolling_cmn_hdr.h:196
Definition uwpolling_cmn_hdr.h:91
uint TRIGGER_uid_
Definition uwpolling_cmn_hdr.h:96
uint16_t t_in_
Definition uwpolling_cmn_hdr.h:92
static int & offset()
Definition uwpolling_cmn_hdr.h:103
static int offset_
Definition uwpolling_cmn_hdr.h:97
static struct hdr_TRIGGER * access(const Packet *p)
Definition uwpolling_cmn_hdr.h:135
uint16_t t_fin_
Definition uwpolling_cmn_hdr.h:94
uint & TRIGGER_uid()
Definition uwpolling_cmn_hdr.h:129
uint16_t & t_in()
Definition uwpolling_cmn_hdr.h:112
uint16_t & t_fin()
Definition uwpolling_cmn_hdr.h:121
packet_t PT_PROBE_SINK
Definition initlib.cpp:55
packet_t PT_TRIGGER
Definition initlib.cpp:53
packet_t PT_AUV_MULE
Definition initlib.cpp:57
packet_t PT_POLL
Definition initlib.cpp:56
packet_t PT_PROBE
Definition initlib.cpp:54
packet_t PT_ACK_SINK
Definition initlib.cpp:58