#ifndef _ACCEPTOR_H
#define _ACCEPTOR_H
+#include "thread.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);
+class AcceptorThread : public Thread {
+public:
+ AcceptorThread(int server_sock);
+
+private:
+ virtual void do_work();
+
+ int server_sock;
+};
#endif // !defined(_ACCEPTOR_H)