Send and receive large data blocks between teonet applications
How to execute this test:
1) Start one teonet test application in terminal:
examples/teolarge teolarge -p 9500
2) Start another test application in other terminal:
examples/teolarge teorecv -r 9500 -a 127.0.0.1
The first application with name teolarge will send data blocks 2048 bytes length to the teorecv application.
Created on July 18, 2015, 3:06 PM
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define TLARGE_VERSION VERSION
size_t data_len, void *user_data) {
switch(event) {
{
const char *teorecv = "teorecv";
strcpy(buffer, "Large Hello!");
}
}
break;
{
printf("Command: %d, Data: %s (%d bytes), got from: %s\n",
}
break;
default:
break;
}
}
int main(
int argc,
char** argv) {
return (EXIT_SUCCESS);
}