WLAN client-server peer network Design Concern



  • I'm trying to implement a WiFi peer network so that two or more users can share resources. AFAIK Qt doesn't provide any class to turn on WiFi implicitly and/or explicitly advertise WiFi connections for the client to search and connect through. Any Ideas?

    Kind regards



  • WiFi works in two modes. They are;

    1. Network Discovery
      Qt appears to offer support for this using QNetworkConfigurationManager class as such a client can search with a view connecting to the advertised IP and port.
    2. Network Broadcasting
      AFAIK Qt doesn't provide this functionality, and this is key for networking over LAN without the use of the internet.
      I'm curious if such a library, code snippet or code design pointers exist to fix this problem.
      So far I've not had any luck trying to implement one.

  • Qt Champions 2016

    @herlarbee said:

    Network Broadcasting

    hi
    I assume you mean something other that UDP?
    http://doc.qt.io/qt-5/qtnetwork-broadcastsender-example.html

    This is often used to make auto connection.
    Server sends "Im server, ip etc" on some port and all clients
    listen to this port.
    When they see the Datagram, they read ip etc. and
    switch to tcp connection.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.