void* receiver(void* arg)
{
- fwp_endpoint_t *repoint1;
+ struct fwp_endpoint *repoint1;
int i,len;
char buffer[30];
fwp_addr_t from;
struct fwp_vres_params vparam1, vparam2;
char msg1[] = "Hello1";
char msg2[] = "Hello2";
- fwp_endpoint_t *sepoint1;
+ struct fwp_endpoint *sepoint1;
pthread_t thread;
vparam1.ac_id = FWP_AC_VO;
printf("Send endpoint 1 created\n");
fwp_send_endpoint_bind(sepoint1, vres1);
- fwp_send(sepoint1, msg1, sizeof(msg1));
+ fwp_send_sync(sepoint1, msg1, sizeof(msg1));
printf("Sent msg1\n");
- fwp_send(sepoint1, msg2, sizeof(msg2));
+ fwp_send_sync(sepoint1, msg2, sizeof(msg2));
printf("Sent msg2\n");
pthread_join(thread, (void**) NULL);