Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QT on windows Sharing Socket descriptor with child process



  • 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...


Log in to reply