So I wonder – is it possible to pass accepted TCP connection (on Windows or Unix like OS) from one process to another? Here the point is to pass connection – not data in a way a proxy app would.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
On Windows, use
WSADuplicateSocket, pass the filled inWSAPROTOCOL_INFOto the other process, useWSPSocketto recreate a socket.On unix-like OS’es this is possible using the
sendmsg()system call. libancillary abstracts this for you.