#include #include "Flatline.h" int main() { NetPlatform_Initalize(); int sock = NetUDPSocket_Create(0); puts("Sending 100 two byte packets . . ."); sockaddr_in address = { .sin_family = AF_INET, .sin_port = htons(27777), .sin_addr.S_un.S_addr = inet_addr("192.168.0.100") }; int i; for (i = 0; i < 100; i ++) { if (NetUDPSocket_Send(sock, (sockaddr*)&address, "hi", 2)) putchar('*'); else putchar('x'); } NetUDPSocket_Close(sock); NetPlatform_Shutdown(); return 0; }