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. Peer to Peer Connection

Peer to Peer Connection

Scheduled Pinned Locked Moved Unsolved General and Desktop
14 Posts 7 Posters 1.1k Views 4 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.
  • P Offline
    P Offline
    Pilel
    wrote on last edited by Pilel
    #1

    how to make peer to peer connection through Local Area Network using an ethernet cable

    artwawA Pl45m4P 2 Replies Last reply
    0
    • P Pilel

      how to make peer to peer connection through Local Area Network using an ethernet cable

      artwawA Offline
      artwawA Offline
      artwaw
      wrote on last edited by
      #2

      @Pilel how is that Qt related? This should be done on system level (and you didn't even specified your platform)

      For more information please re-read.

      Kind Regards,
      Artur

      1 Reply Last reply
      0
      • P Pilel

        how to make peer to peer connection through Local Area Network using an ethernet cable

        Pl45m4P Offline
        Pl45m4P Offline
        Pl45m4
        wrote on last edited by
        #3

        @Pilel

        Have a look at some examples and the QtNetwork module in general.

        P2P UDP Network Chat

        • https://doc.qt.io/qt-5/qtnetwork-network-chat-example.html

        All examples

        • https://doc.qt.io/qt-5/examples-network.html

        If debugging is the process of removing software bugs, then programming must be the process of putting them in.

        ~E. W. Dijkstra

        1 Reply Last reply
        2
        • P Offline
          P Offline
          Pilel
          wrote on last edited by Pilel
          #4

          @artwaw
          thank you for replying
          in fact, my task consists of sharing real-time data between two nodes
          the two nodes are related with an ethernet cable and running Linux distribution os
          one node sends data to the second one to control some sensors connected to it and receiving the sensors' state to plot them in a dashboard (the dashboard will be developed using qt)

          JonBJ JoeCFDJ 2 Replies Last reply
          0
          • P Pilel

            @artwaw
            thank you for replying
            in fact, my task consists of sharing real-time data between two nodes
            the two nodes are related with an ethernet cable and running Linux distribution os
            one node sends data to the second one to control some sensors connected to it and receiving the sensors' state to plot them in a dashboard (the dashboard will be developed using qt)

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #5

            @Pilel
            I don't know about your OSI Model's 7 layers! :) But do you just mean they should communicate over sockets, like TCP or UDP?

            Pl45m4P 1 Reply Last reply
            2
            • JonBJ JonB

              @Pilel
              I don't know about your OSI Model's 7 layers! :) But do you just mean they should communicate over sockets, like TCP or UDP?

              Pl45m4P Offline
              Pl45m4P Offline
              Pl45m4
              wrote on last edited by
              #6

              @JonB

              Most of the time you face OSI Layer 8 problems :o)


              If debugging is the process of removing software bugs, then programming must be the process of putting them in.

              ~E. W. Dijkstra

              P 1 Reply Last reply
              2
              • Pl45m4P Pl45m4

                @JonB

                Most of the time you face OSI Layer 8 problems :o)

                P Offline
                P Offline
                Pilel
                wrote on last edited by
                #7

                @Pl45m4
                more explication, please

                1 Reply Last reply
                0
                • P Pilel

                  @artwaw
                  thank you for replying
                  in fact, my task consists of sharing real-time data between two nodes
                  the two nodes are related with an ethernet cable and running Linux distribution os
                  one node sends data to the second one to control some sensors connected to it and receiving the sensors' state to plot them in a dashboard (the dashboard will be developed using qt)

                  JoeCFDJ Offline
                  JoeCFDJ Offline
                  JoeCFD
                  wrote on last edited by JoeCFD
                  #8

                  @Pilel mqtt or ros is another option for control if no large amount of data is involved..

                  P 1 Reply Last reply
                  1
                  • JoeCFDJ JoeCFD

                    @Pilel mqtt or ros is another option for control if no large amount of data is involved..

                    P Offline
                    P Offline
                    Pilel
                    wrote on last edited by
                    #9

                    @JoeCFD thanks
                    I have video streaming in the second node so can MQTT support video streaming

                    mrjjM JoeCFDJ 2 Replies Last reply
                    0
                    • P Pilel

                      @JoeCFD thanks
                      I have video streaming in the second node so can MQTT support video streaming

                      mrjjM Offline
                      mrjjM Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @Pilel
                      Hi
                      Nope MQTT does not work well with live video.

                      So if you need to stream video, it's completely another story than sending some data from sensors.

                      P 1 Reply Last reply
                      2
                      • mrjjM mrjj

                        @Pilel
                        Hi
                        Nope MQTT does not work well with live video.

                        So if you need to stream video, it's completely another story than sending some data from sensors.

                        P Offline
                        P Offline
                        Pilel
                        wrote on last edited by
                        #11

                        @mrjj thank you
                        but a camera is a sensor.
                        and I have some other sensors.
                        have you a suggestion ??

                        mrjjM 1 Reply Last reply
                        0
                        • P Pilel

                          @mrjj thank you
                          but a camera is a sensor.
                          and I have some other sensors.
                          have you a suggestion ??

                          mrjjM Offline
                          mrjjM Offline
                          mrjj
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          @Pilel

                          well depends on what you really want to do and what data it is.

                          for true streaming of a live camera , you can use
                          https://vlc-qt.tano.si/

                          is the camera is an ip one and the goal is to show LIVE video.

                          else the network classes @Pl45m4 points to will do a fine job.

                          1 Reply Last reply
                          2
                          • P Pilel

                            @JoeCFD thanks
                            I have video streaming in the second node so can MQTT support video streaming

                            JoeCFDJ Offline
                            JoeCFDJ Offline
                            JoeCFD
                            wrote on last edited by JoeCFD
                            #13

                            @Pilel you can also use gstreamer or qtgstreamer to stream video. For other controls(turn on and off, etc.), mqtt can be good.

                            1 Reply Last reply
                            1
                            • VRoninV Offline
                              VRoninV Offline
                              VRonin
                              wrote on last edited by
                              #14

                              For sending data where bandwidth will not be a problem you can check the simple chat example
                              For video/audio see the suggestions posted above regarding libvlc/gstreamer

                              "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                              ~Napoleon Bonaparte

                              On a crusade to banish setIndexWidget() from the holy land of Qt

                              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