X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=acceptor.h;fp=acceptor.h;h=f173e5b647e68d9c4d8cad2ac64e99b7c4523dd0;hp=0000000000000000000000000000000000000000;hb=3f82e5f8ede16a712aa0bcd0913d2d8e3689742c;hpb=462cb16514a2b691ae4d4b76125b42fda83df712 diff --git a/acceptor.h b/acceptor.h new file mode 100644 index 0000000..f173e5b --- /dev/null +++ b/acceptor.h @@ -0,0 +1,10 @@ +#ifndef _ACCEPTOR_H +#define _ACCEPTOR_H + +int create_server_socket(int port); + +// A thread that accepts new connections on a given socket, +// and hands them off to the server pool. +void *acceptor_thread_run(void *arg); + +#endif // !defined(_ACCEPTOR_H)