eyehere

Results 2 comments of eyehere

static void* accept_loop(void* args) { lthread_t *lt = NULL; lthread_create(&lt, listener, NULL); lthread_run(); } int main(int argc, char **argv) { ...... int num = 4; int i = 0; pthread_t...

#include #include #include #include #include #include struct cli_info { /* other stuff if needed*/ struct sockaddr_in peer_addr; int fd; }; typedef struct cli_info cli_info_t; char *reply = "HTTP/1.0 200 OK\r\nContent-length:...