December 25, 2011

aabc aabc
Robot Herder
257 posts

QLocalSocket on Unix

 

How can I use QLocalSocket with DGRAM type ?

5 replies

December 25, 2011

danimo danimo
Lab Rat
40 posts

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?

December 25, 2011

aabc aabc
Robot Herder
257 posts

Isnt DGRAM more lightweight ?

December 25, 2011

danimo danimo
Lab Rat
40 posts

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]

December 25, 2011

aabc aabc
Robot Herder
257 posts

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

December 25, 2011

danimo danimo
Lab Rat
40 posts

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

 
  ‹‹ How to install VS2008 and VS2010 versions side by side      Using Qt for POS system? ››

You must log in to post a reply. Not a member yet? Register here!