Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QT on windows Sharing Socket descriptor with child process

QT on windows Sharing Socket descriptor with child process

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sullad
    wrote on last edited by
    #1

    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 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved