Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    QLocalSocket on Unix

    General and Desktop
    2
    6
    3466
    Loading More Posts
    • 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.
    • A
      aabc last edited by

      How can I use QLocalSocket with DGRAM type ?

      1 Reply Last reply Reply Quote 0
      • D
        danimo last edited by

        https://bugreports.qt.nokia.com/browse/QTBUG-13570 suggests it's not available. QLocalSocket is meant to provide the same behavior cross-platform. This is not (easily) possible with DGRAM.

        Why would you need DRAM on local sockets anyway?

        1 Reply Last reply Reply Quote 0
        • A
          aabc last edited by

          Isnt DGRAM more lightweight ?

          1 Reply Last reply Reply Quote 0
          • D
            danimo last edited by

            Not that I am aware of. I did some research out of curiosity, and according to http://www.thomasstover.com/uds.html there is no real benefit for DGRAM on Unix Domain Sockets (as opposed to TCP and UDP obviously). If you still want to send only some (very) small datagrams, or have some special design scenarios (read the link for an example), you will have to resort to using the native socket API for the time being.

            [EDIT: fixed link, Volker]

            1 Reply Last reply Reply Quote 0
            • A
              aabc last edited by

              Cant you please send me again the link (it seems to be broken) ?
              Thanks

              1 Reply Last reply Reply Quote 0
              • D
                danimo last edited by

                http://www.thomasstover.com/uds.html (devnet seems to include the ',' in the link).

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post