#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") }; char buffer[256] = {0}; fgets(buffer, 256, stdin); int i; for (i = 0; i < 10; i ++) { if (NetUDPSocket_Send(sock, (sockaddr*)&address, buffer, 256)) putchar('*'); else putchar('x'); } NetUDPSocket_Close(sock); NetPlatform_Shutdown(); return 0; }