Get ACK event
This Example shows how to get ACK event from remote peer
Created on August 14, 2015, 1:53 PM
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define TACK_VERSION "0.0.2"
size_t data_len, void *user_data) {
switch(event) {
break;
{
static int idx = 0;
sprintf(buffer, "#%d: Teoack Hello!", idx++);
printf("\nSend message \"%s\" to %s peer\n", buffer, peer_to);
strlen(buffer)+1);
}
}
}
break;
{
printf("Got ACK event to ID %d, data: %s\n",
*(uint32_t*)user_data, (
char*)rd->
data);
}
break;
default:
break;
}
}
int main(
int argc,
char** argv) {
const char *app_argv[] = { "", "peer_to"};
return (EXIT_SUCCESS);
}