Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
no need for the sendstr() pimple. use send() instead
[simgrid.git] / examples / s4u / dumb / s4u_test.cpp
index 41559b6..678d16f 100644 (file)
@@ -31,8 +31,9 @@ public:
                        : Actor(procname,host,argc,argv){}
 
        int main(int argc, char **argv) {
+               const char *msg = "GaBuZoMeu";
                XBT_INFO("Hello s4u, I have something to send");
-               sendstr(*Mailbox::byName("worker"),"GaBuZoMeu");
+               send(*Mailbox::byName("worker"), xbt_strdup(msg), strlen(msg));
 
                XBT_INFO("I'm done. See you.");
                return 1;