-/* Copyright (c) 2010-2021. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2010-2022. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
e.load_platform(argv[1]);
- simgrid::s4u::Actor::create("server", simgrid::s4u::Host::by_name("HostA"), server);
- simgrid::s4u::Actor::create("client", simgrid::s4u::Host::by_name("HostB"), client, 1);
- simgrid::s4u::Actor::create("client", simgrid::s4u::Host::by_name("HostC"), client, 2);
- simgrid::s4u::Actor::create("client", simgrid::s4u::Host::by_name("HostD"), client, 3);
+ simgrid::s4u::Actor::create("server", e.host_by_name("HostA"), server);
+ simgrid::s4u::Actor::create("client", e.host_by_name("HostB"), client, 1);
+ simgrid::s4u::Actor::create("client", e.host_by_name("HostC"), client, 2);
+ simgrid::s4u::Actor::create("client", e.host_by_name("HostD"), client, 3);
e.run();
return 0;