source: Daodan/Flatline/src/Flatline.c @ 460

Last change on this file since 460 was 460, checked in by rossy, 12 years ago
File size: 357 bytes
Line 
1#include "Flatline.h"
2
3bool FLrServer_PacketCallback(char* data, int datalen, int from)
4{
5        static int recieved = 0;
6       
7        data[datalen] = '\0';
8        if (!strcmp(data, "hi"))
9                printf("\r%d packets recieved                                ", ++recieved);
10        return true;
11}
12
13bool FLrServer_Run()
14{
15        return Net_Listen(27777, FLrListen_PacketCallback);
16}
Note: See TracBrowser for help on using the repository browser.