int main() { int server_fd; int client_fd; char buffer[4096]; char *response; int bytes_received; int response_len; int count; server_fd = socket(AF_INET(), SOCK_STREAM(), 0); bind(server_fd, 8080); listen(server_fd, 10); printf("Server listening on port 8080\n"); count = 0; while (count < 3) { printf("Waiting for connection %d\n", count); count = count + 1; } printf("Done\n"); close(server_fd); return 0; }