You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @Losdanmartin ,
thank you for your question, but it unfortunately is not related to the product hosted by this repo.
We do understand your situation as we've all been there before, so as a recommendation please try posting your question on a more general forum like StackOverflow. You will need to be more specific though, including which host are you compiling for and which compiler you are using.
Hi I just wrote a code and bumped into this problem. I've never seen a bug like this before please help me, im a beginner
#include
#include
#include "Network.h"
#include "Host.h"
int main(){
Network network;
Router *router1 = new Router("192.168.0.1");
Router *router2 = new Router("192.168.1.1");
Router *router3 = new Router("192.168.2.1");
Host *host1 = new Host ("192.168.0.100");
Host *host2 = new Host ("192.168.0.101");
Host *host3 = new Host ("192.168.0.102");
router1->addDevice (host1);
router2->addDevice (host2);
router3->addDevice (host3);
network.addRouter(router1);
network.addRouter(router2);
network.addRouter(router3);
network.addHost(host1);
network.addHost(host2);
network.addHost(host3);
host1->sendPacket("Hi Host!", "192.168.0.102");
}
The text was updated successfully, but these errors were encountered: