#include "Flatline.h" bool FLrServer_PacketCallback(char* data, int datalen, int from) { static int recieved = 0; data[datalen] = '\0'; if (!strcmp(data, "hi")) printf("\r%d packets recieved ", ++recieved); return true; } bool FLrServer_Run() { return Net_Listen(27777, FLrListen_PacketCallback); }