add network and device structure

This commit is contained in:
Robert 2023-06-30 01:13:55 +02:00
commit aa458dadd6
10 changed files with 138 additions and 0 deletions

14
src/main.cpp Normal file
View file

@ -0,0 +1,14 @@
#include <iostream>
#include "Netsim.hpp"
int main(int argc, char** argv) {
Network network("Testnet");
network.addDevice(Device::create("FA:56:A7:12:04:ED"));
network.addDevice(Device::create("87:1A:B5:77:3D:33"));
std::cout << network << std::endl;
return 0;
}