Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - #include <QCoreApplication>
 - #include "echoserver.h"
 - int main(int argc, char *argv[])
 - {
 - QCoreApplication a(argc, argv);
 - EchoServer *server = new EchoServer(1234, true);
 - QObject::connect(server, &EchoServer::closed, &a, &QCoreApplication::quit);
 - return a.exec();
 - }
 
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment