A basic question about Qt unix domain socket
Unsolved
General and Desktop
-
Hi, I followed the example in Qt creator to try unix domain socket and I have the 2 following questions:
- If the app crashed but the socket is still alive, how can I find the 'file' to delete it in order to terminate the socket?
- I modified the sample codes to let the server side read from the client right after the connection established, but it failed, do you have such sample codes to do that?
Thank you in advance
-
Hi and welcome to devnet,
Either pass a full path when you create the server and the socket and thus, you will be able to check the concerned file or use the fullServerName method.
-
It's platform dependent. IIRC, it should be in the user temporary folder on macOS.