I have a unix socket in /tmp/my_sock
How can I connect to it and write data? Is there a Qt way to do it?
Qt supports unix domain sockets natively through QLocalSocket
and QLocalServer
.
The name you have to pass as first parameter to QLocalSocket::connectToServer
is the socket path: "/tmp/my_sock"
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With