source: Daodan/Flatline/src/testclient.c@ 472

Last change on this file since 472 was 457, checked in by rossy, 15 years ago

Flatline

File size: 389 bytes
Line 
1#include <stdio.h>
2#include "Flatline.h"
3
4int main()
5{
6 NetPlatform_Initalize();
7 int sock = Net_CreateSocket(0);
8 puts("Sending 100 two byte packets . . .");
9
10 int i;
11 for (i = 0; i < 100; i ++)
12 {
13 if (Net_Send(sock, inet_addr("127.0.0.1"), 27777, "hi", 3))
14 putchar('*');
15 else
16 putchar('x');
17 }
18 Net_CloseSocket(sock);
19 NetPlatform_Shutdown();
20 return 0;
21}
Note: See TracBrowser for help on using the repository browser.