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. QLocalSocket on Unix

QLocalSocket on Unix

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 3.7k 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.
  • A Offline
    A Offline
    aabc
    wrote on last edited by
    #1

    How can I use QLocalSocket with DGRAM type ?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      danimo
      wrote on last edited by
      #2

      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
      0
      • A Offline
        A Offline
        aabc
        wrote on last edited by
        #3

        Isnt DGRAM more lightweight ?

        1 Reply Last reply
        0
        • D Offline
          D Offline
          danimo
          wrote on last edited by
          #4

          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
          0
          • A Offline
            A Offline
            aabc
            wrote on last edited by
            #5

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

            1 Reply Last reply
            0
            • D Offline
              D Offline
              danimo
              wrote on last edited by
              #6

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

              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