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. How do you use "QUdpSocket::leaveMulticastGroup" ?
Qt 6.11 is out! See what's new in the release blog

How do you use "QUdpSocket::leaveMulticastGroup" ?

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 3 Posters 1.8k Views
  • 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.
  • M Offline
    M Offline
    morita
    wrote on last edited by
    #1

    Hello. I recently search the multicast because I have to use the multicast in my developing app.

    But I don't understand the leaveMulticastGroup in the multicast when I read the Qt document. And I couldn't find any samples for the leaveMulticastGroup.

    I am interested in the leaveMulticastGroup.

    Could you tell me how to use it and which situation to use it ?

    jsulmJ 1 Reply Last reply
    0
    • Poor EnglishP Offline
      Poor EnglishP Offline
      Poor English
      wrote on last edited by
      #2

      sorry, i do not understand the specific usage of "leaveMuliicastGroup",but I can search for the definition of multicast:
      The original intention of multicast technology is to send information to a target group in the form of "best effort" in the IP netword,this target group is called a multicast group, so when then source host sends information to the multipoint target host, the source host only sends a copy of data, and the destination address of the data is multicast group address. In this way,all members of the group can receive a copy of the data sent by the source host. In this multicast mode, only the real Members who need the information will receive the information, but other hosts will not

      I am sorry about my poor English!

      M 1 Reply Last reply
      0
      • M morita

        Hello. I recently search the multicast because I have to use the multicast in my developing app.

        But I don't understand the leaveMulticastGroup in the multicast when I read the Qt document. And I couldn't find any samples for the leaveMulticastGroup.

        I am interested in the leaveMulticastGroup.

        Could you tell me how to use it and which situation to use it ?

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @morita Did you also read https://doc.qt.io/qt-5/qudpsocket.html#joinMulticastGroup ?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        M 1 Reply Last reply
        0
        • Poor EnglishP Poor English

          sorry, i do not understand the specific usage of "leaveMuliicastGroup",but I can search for the definition of multicast:
          The original intention of multicast technology is to send information to a target group in the form of "best effort" in the IP netword,this target group is called a multicast group, so when then source host sends information to the multipoint target host, the source host only sends a copy of data, and the destination address of the data is multicast group address. In this way,all members of the group can receive a copy of the data sent by the source host. In this multicast mode, only the real Members who need the information will receive the information, but other hosts will not

          M Offline
          M Offline
          morita
          wrote on last edited by
          #4

          @Poor-English Thak you for your reply. I study the multicast . But I would be happy if you tell me the specific usage of ""leaveMulticastGroup".

          1 Reply Last reply
          0
          • jsulmJ jsulm

            @morita Did you also read https://doc.qt.io/qt-5/qudpsocket.html#joinMulticastGroup ?

            M Offline
            M Offline
            morita
            wrote on last edited by
            #5

            @jsulm Yes. I read the document. But I didn't understand it . I read it means "it Leaves the multicast group specified by groupAddress on the default interface chosen by the operating system." But I didn't understand what it "Leaves". Which case do we use this function , in case of sending or in case of recieving ?

            jsulmJ 1 Reply Last reply
            0
            • M morita

              @jsulm Yes. I read the document. But I didn't understand it . I read it means "it Leaves the multicast group specified by groupAddress on the default interface chosen by the operating system." But I didn't understand what it "Leaves". Which case do we use this function , in case of sending or in case of recieving ?

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @morita I was talking about https://doc.qt.io/qt-5/qudpsocket.html#joinMulticastGroup , not leaveMulticastGroup
              See also https://tldp.org/HOWTO/Multicast-HOWTO-2.html

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              M 1 Reply Last reply
              0
              • jsulmJ jsulm

                @morita I was talking about https://doc.qt.io/qt-5/qudpsocket.html#joinMulticastGroup , not leaveMulticastGroup
                See also https://tldp.org/HOWTO/Multicast-HOWTO-2.html

                M Offline
                M Offline
                morita
                wrote on last edited by
                #7

                @jsulm Thank you for giving me the documents. I also read the URL about the joinMulticastGroup. And after reading your second document , I finally understood the leaveMulticastGroup.

                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