|
SDNSim
A software-defined network simulator in C++
|
Represents a data packet in the SDN simulation. More...
#include <Packet.h>
Public Member Functions | |
| Packet (const std::string &src, const std::string &dest, const std::string &data) | |
| Constructs a packet with specified source, destination, and payload. | |
Public Attributes | |
| std::string | source |
| std::string | destination |
| std::string | payload |
Represents a data packet in the SDN simulation.
Contains source, destination, and payload information.
| Packet::Packet | ( | const std::string & | src, |
| const std::string & | dest, | ||
| const std::string & | data | ||
| ) |
Constructs a packet with specified source, destination, and payload.
Constructs a packet with a source, destination, and payload.
< Content or message carried by the packet.
| src | The name of the sending device. |
| dest | The name of the receiving device. |
| data | The content or message carried by the packet. |
Initializes a network packet used in SDNSim to simulate communication between devices.
| src | Name of the device sending the packet. |
| dest | Name of teh device intended to recieve the packet. |
| data | The content or message being transmitted. |
Definition at line 12 of file Packet.cpp.
| std::string Packet::destination |
| std::string Packet::payload |