Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
rename S4U::Channel to S4U::Mailbox. It was not a good idea
[simgrid.git] / examples / s4u / dumb / s4u_test.cpp
index f85ac31..51001e3 100644 (file)
@@ -18,7 +18,7 @@ public:
        int main(int argc, char **argv) {
                XBT_INFO("Hello s4u, I'm ready to serve");
 
-               char *msg = recvstr(*Channel::byName("worker"));
+               char *msg = recvstr(*Mailbox::byName("worker"));
                XBT_INFO("I received '%s'",msg);
                XBT_INFO("I'm done. See you.");
                return 1;
@@ -32,7 +32,7 @@ public:
 
        int main(int argc, char **argv) {
                XBT_INFO("Hello s4u, I have something to send");
-               sendstr(*Channel::byName("worker"),"GaBuZoMeu");
+               sendstr(*Mailbox::byName("worker"),"GaBuZoMeu");
 
                XBT_INFO("I'm done. See you.");
                return 1;