Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Anything similar to QSocketNotifier in boost::asio?
Forum Updated to NodeBB v4.3 + New Features

Anything similar to QSocketNotifier in boost::asio?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 805 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    stereomatching
    wrote on last edited by
    #1

    @SOCKET sock = generate_socket("fileWizard");
    notifier = new QSocketNotifier(sock, QSocketNotifier::Read, this);

    connect(notifier, SIGNAL(activate(int)), this, some_slot(int));@

    The SOCKET is a win32 SOCKET, the function of "generate_socket" is creating a socket connect to a local exe which called "fileWizard"(don't know the implementation details of the function generate_socket). With Qt, we always generate the socket and connect the signal and slot, but can't find a similar example in asio.

    Do not familiar to socket and asio yet, please tell me what information you need. Thanks

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You should rather ask this on a boost dedicated forum, you will more likely get an answer there.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved