-/* Copyright (c) 2013-2021. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2013-2023. 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]);
- sg4::Actor::create("server", sg4::Host::by_name("HostA"), server);
- sg4::Actor::create("client", sg4::Host::by_name("HostB"), client, 1);
- sg4::Actor::create("client", sg4::Host::by_name("HostC"), client, 2);
+ sg4::Actor::create("server", e.host_by_name("HostA"), server);
+ sg4::Actor::create("client", e.host_by_name("HostB"), client, 1);
+ sg4::Actor::create("client", e.host_by_name("HostC"), client, 2);
e.run();
return 0;