packet.h
#ifndef PACKET_H
#define PACKET_H
#include <string>
using namespace std ;
class Packet{
public:
Packet();
Packet(string, string, int, int, int, int) ;
string getSrcAddr() ;
string getDstAddr() ;
int getSrcPort() ;
int getDstPort() ;
int getOctects() ;
int getPackets() ;
void setSrcAddr(string) ;
void setDstAddr(string) ;
void setSrcPort(int) ;
void setDstPort(int) ;
void setOctects(int) ;
void setPackets(int) ;
void enable() ;
void disable() ;
bool isEnabled() ;
private:
string src_addr ;
string dst_addr ;
int src_port ;
int dst_port ;
int octects ;
int packets ;
bool enabled ;
};
#endif // PACKET_H
std
Packet::dst_port
int dst_port
Definition: packet.h:199
Packet::src_port
int src_port
Definition: packet.h:198
Packet::packets
int packets
Definition: packet.h:201
Packet::dst_addr
string dst_addr
Definition: packet.h:197
Packet::src_addr
string src_addr
Definition: packet.h:196
Packet::octects
int octects
Definition: packet.h:200
Packet::enabled
bool enabled
Definition: packet.h:202
Packet
Una clase que representa paquetes.
Definition: packet.h:17