#include <errno.h>
#include <stdio.h>
#include <pthread.h>
+#include <arpa/inet.h>
#define MSGN 2
char buffer[30];
fwp_addr_t from;
- FWP_DEBUG("Creating receive endpoint\n");
+ printf("Creating receive endpoint\n");
if (fwp_receive_endpoint_create(7777, &attr,&repoint_d1) < 0){
perror("Error while creating receive endpoint\n");
return NULL;
}
- FWP_DEBUG("Receive endpoint created \n");
+ printf("Receive endpoint created \n");
for (i = 0; i < MSGN; i++) {
if ((len = fwp_recv(repoint_d1, buffer, sizeof(buffer), &from,
0)) < 0) {
fwp_send_endpoint_bind(sepoint_d1, vres_d1);
fwp_send(sepoint_d1, msg1, sizeof(msg1), 0);
- FWP_DEBUG("Sent msg1\n");
+ printf("Sent msg1\n");
fwp_send(sepoint_d1, msg2, sizeof(msg2), 0);
- FWP_DEBUG("Sent msg2\n");
+ printf("Sent msg2\n");
pthread_join(thread, (void**) NULL);
/*if (fwp_vres_destroy(vres_d1) < 0) {