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
Forum Updated to NodeBB v4.3 + New Features

QT on windows Sharing Socket descriptor with child process

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.1k 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 12 Dec 2012, 12:20 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

    1/1

    12 Dec 2012, 12:20

    • Login

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