33# include <netinet/in.h>
34# include <sys/socket.h>
38# define close(x) closesocket(x)
46# define sleep(x) Sleep(x)
65 printf(
"New client accepted\n");
98 printf(
"Socket creation failed\n");
105 printf(
"Socket modification failed\n");
125 printf(
"Listen failed\n");
129 printf(
"Server listening\n");
int TCP_clients[MAX_CLIENTS]
void close_TCP_port(void)
bool accept_TCP_client(bool wait_for_client)
int number_of_TCP_clients
void write_TCP_port(char *data, unsigned length)
struct sockaddr_in servaddr cli
int listening_socket_file_descriptor
TCP server to feed XCsoar with flight data.
mathematical vector of arbitrary type and size
collection of system tuning parameters