Revision: | 483 |
Committed: | Sun Nov 29 08:20:43 2009 UTC (15 years, 10 months ago) by rossy |
Content type: | text/x-csrc |
File size: | 366 byte(s) |
Log Message: | fixed testclient |
# | Content |
---|---|
1 | #include "Flatline.h" |
2 | |
3 | bool 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 | |
13 | bool FLrServer_Run() |
14 | { |
15 | return NetUDPServer_Listen(27777, FLrServer_PacketCallback); |
16 | } |