Advertisement
Guest User

Untitled

a guest
Feb 18th, 2024
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.46 KB | None | 0 0
  1. #include <QtCore/QCoreApplication>
  2. #include <QtCore/QCommandLineParser>
  3. #include <QtCore/QCommandLineOption>
  4. #include "echoclient.h"
  5.  
  6. int main(int argc, char *argv[])
  7. {
  8.     using namespace Qt::Literals::StringLiterals;
  9.     QCoreApplication a(argc, argv);
  10.  
  11.     QUrl url("ws://localhost:1234");
  12.     qDebug() << url;
  13.  
  14.     EchoClient client(url, true);
  15.  
  16.     QObject::connect(&client, &EchoClient::closed, &a, &QCoreApplication::quit);
  17.  
  18.     return a.exec();
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement