00001 #include <iostream> 00002 #include <cstdlib> 00003 using namespace std; 00004 00005 #include "server.h" 00006 #include "libmyth/mythsocket.h" 00007 00008 MythServer::MythServer(int port, QObject *parent) 00009 : QServerSocket(port, 1, parent) 00010 { 00011 } 00012 00013 void MythServer::newConnection(int socket) 00014 { 00015 MythSocket *s = new MythSocket(socket); 00016 emit(newConnect(s)); 00017 } 00018
1.5.5