[Development] QTcpSocket, QLocalSocket, common-use-model?

Kevin Krammer kevin.krammer at kdab.com
Wed Oct 10 11:03:21 CEST 2012

On Monday, 2012-10-08, Charley Bay wrote:

> QUESTION:  If you logically need a "network-socket" (LAN or WAN, but
> sometimes accidentally on the same-computer), is there a *performance*
> issue (or any reasonable design preference) where QLocalSocket would
> be "preferable" to a QTcpSocket?  (...in the case where you detected
> you were on the "same-computer" or a "Windows-network" so you could
> use QLocalSocket, and you used QTcpSocket for other networks?)

Not related to performance, but often the main reason to use techniques such 
as QLocalSocket is better access control.
Any process (running as any user) on the machine can attempt a connect to a 
TCP socket on the loopbar device, while e.g. Unix domain sockets can be 
created such that only processes of the same user can attempt connections.


** Qt Developer Conference: http://qtconference.kdab.com/ **

Kevin Krammer | kevin.krammer at kdab.com | Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4712 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20121010/a4395409/attachment.bin>

More information about the Development mailing list