add network and device structure
This commit is contained in:
commit
aa458dadd6
10 changed files with 138 additions and 0 deletions
14
src/main.cpp
Normal file
14
src/main.cpp
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue