]> git.sesse.net Git - cubemap/blobdiff - acceptor.h
Separate out the acceptor stuff into its own file.
[cubemap] / acceptor.h
diff --git a/acceptor.h b/acceptor.h
new file mode 100644 (file)
index 0000000..f173e5b
--- /dev/null
@@ -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)