1 #ifndef NETWORKINTERFACE_H_
2 #define NETWORKINTERFACE_H_
4 #include <msp/core/thread.h>
5 #include <msp/io/eventdispatcher.h>
6 #include <msp/io/pipe.h>
7 #include <msp/net/streamserversocket.h>
12 class NetworkInterface
15 class NetworkThread: public Msp::Thread
18 NetworkInterface &network;
19 Msp::IO::Pipe wakeup_pipe;
23 NetworkThread(NetworkInterface &);
32 Msp::Net::StreamServerSocket *server_sock;
33 Msp::IO::EventDispatcher event_disp;
34 NetworkThread *thread;
35 std::list<Client *> clients;
38 NetworkInterface(Xinema &);
42 void connection_available();