]> rtime.felk.cvut.cz Git - frescor/fwp.git/blobdiff - fwp/lib/fwp/tests/fwp_vrestest/fwp_vrestest1.c
Implemented synchronous and asynchronous sending
[frescor/fwp.git] / fwp / lib / fwp / tests / fwp_vrestest / fwp_vrestest1.c
index 27a2395025660824c054e1d41391d39e32fa0bc7..fc0faab2fcd62af389077111e747fb1bfade2099 100644 (file)
@@ -29,7 +29,7 @@ int main()
        struct fwp_vres_params vparam1;
        char msg1[15];
        char buffer[30];
-       fwp_endpoint_t *sepoint, *repoint;
+       struct fwp_endpoint *sepoint, *repoint;
        int count;
        struct timespec  sendtime;
        fwp_endpoint_attr_t attr;
@@ -76,7 +76,7 @@ int main()
        
        for (count = 0; count < NUM; count++) { 
                sprintf(msg1,"msg%d",count);
-               fwp_send(sepoint, msg1, sizeof(msg1));
+               fwp_send_sync(sepoint, msg1, sizeof(msg1));
                
                clock_gettime(CLOCK_MONOTONIC, &sendtime);
                printf("Sent: sec = %ld nsec = %ld \n", sendtime.tv_sec,