DESERT 3.5.1
Loading...
Searching...
No Matches
uw-csma-aloha.h File Reference
#include <mmac.h>
#include <iostream>
#include <string>
#include <map>
#include <set>
#include <queue>
#include <fstream>
#include <mphy.h>
Include dependency graph for uw-csma-aloha.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CsmaAloha
 
class  CsmaAloha::AlohaTimer
 
class  CsmaAloha::BackOffTimer
 
class  CsmaAloha::AckTimer
 
class  CsmaAloha::ListenTimer
 

Macros

#define CSMA_DROP_REASON_WRONG_STATE    "WST"
 
#define CSMA_DROP_REASON_WRONG_RECEIVER    "WRCV"
 
#define CSMA_DROP_REASON_UNKNOWN_TYPE    "UPT"
 
#define CSMA_DROP_REASON_BUFFER_FULL    "DBF"
 
#define CSMA_DROP_REASON_ERROR   "ERR"
 

Variables

packet_t PT_MMAC_ACK
 

Detailed Description

Provides the description of CsmaAloha Class.

Author
Federico Guerra, Saiful Azad and Federico Favaro
Version
1.0.0

Definition in file uw-csma-aloha.h.

Macro Definition Documentation

◆ CSMA_DROP_REASON_BUFFER_FULL

#define CSMA_DROP_REASON_BUFFER_FULL    "DBF"

The Buffer of DATA packets is full.

Definition at line 60 of file uw-csma-aloha.h.

◆ CSMA_DROP_REASON_ERROR

#define CSMA_DROP_REASON_ERROR   "ERR"

Packet corrupted.

Definition at line 61 of file uw-csma-aloha.h.

◆ CSMA_DROP_REASON_UNKNOWN_TYPE

#define CSMA_DROP_REASON_UNKNOWN_TYPE    "UPT"

The type of the packet is unknown.

Definition at line 58 of file uw-csma-aloha.h.

◆ CSMA_DROP_REASON_WRONG_RECEIVER

#define CSMA_DROP_REASON_WRONG_RECEIVER    "WRCV"

The packet is for another node.

Definition at line 56 of file uw-csma-aloha.h.

◆ CSMA_DROP_REASON_WRONG_STATE

#define CSMA_DROP_REASON_WRONG_STATE    "WST"

The protocol cannot receive this kind of packet in this state .

Definition at line 54 of file uw-csma-aloha.h.

Variable Documentation

◆ PT_MMAC_ACK

packet_t PT_MMAC_ACK
extern