]> rtime.felk.cvut.cz Git - frescor/fwp.git/blobdiff - fwp/lib/fwp/tests/fwp_vrestest/fwp_vrestest2.c
Implemented synchronous and asynchronous sending
[frescor/fwp.git] / fwp / lib / fwp / tests / fwp_vrestest / fwp_vrestest2.c
index d4dbe5c5ef4a45986fdd70666f08218034b5cbf4..e43ffd4b908fece60ee1b392b33ef2e449bc7f4e 100644 (file)
@@ -31,7 +31,7 @@ fwp_endpoint_attr_t attr;
        
 void* sender()
 {
-       fwp_endpoint_t *sepoint;
+       struct fwp_endpoint *sepoint;
        fwp_vres_t *vres;
        struct fwp_vres_params vparam1;
        char msg1[10];
@@ -65,7 +65,7 @@ void* sender()
        while (count < NUM){
                count++;
                sprintf(msg1,"msg%d sent\n",count);
-               fwp_send(sepoint, msg1, sizeof(msg1));
+               fwp_send_sync(sepoint, msg1, sizeof(msg1));
        
                printf(msg1);   
                /*clock_gettime(CLOCK_MONOTONIC, &sendtime);
@@ -91,7 +91,7 @@ void* receiver()
 {
         ssize_t len;
        char buffer[30];
-       fwp_endpoint_t *repoint;
+       struct fwp_endpoint *repoint;
        int count;
        struct timespec recvtime;
        fwp_addr_t      from;