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. WLAN client-server peer network Design Concern
Qt 6.11 is out! See what's new in the release blog

WLAN client-server peer network Design Concern

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 1.0k Views 2 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.
  • H Offline
    H Offline
    herlarbee
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • H Offline
      H Offline
      herlarbee
      wrote on last edited by
      #2

      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.
      1 Reply Last reply
      0
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @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.

        1 Reply Last reply
        2

        • Login

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