QT on windows Sharing Socket descriptor with child process
General and Desktop
1
Posts
1
Posters
1.1k
Views
1
Watching
-
wrote on 12 Dec 2012, 12:20 last edited by
I am launching new process via QProcess::Start(), how to share socket descriptor b/w current and child process. i am passing as command line argument but from child process communication not working on that descriptor.
my child process is windows executable, and i am directly using that socket descriptor in the recv() function call.
once this recv executes on child, socket connection is getting closed.
duplicating socket handle is possible in linux i have seen function calls like flag FD_CLOEXEC but how to achieve the same in windows.
please advise...
1/1