1

I got a socket handle in C++; then it spawned off a child Java program.

I used the following code and able to open up the streams in my Java program on Linux.

Can I get a Java Socket from a file descriptor number?

But the same code does not work on Windows.

I have been researching it for a couple weeks but not able to find any solution.

Does anyone know how to do it if possible?

Kevin W
  • 11
  • 1
  • Possible duplicate of [Are TCP SOCKET handles inheritable?](https://stackoverflow.com/questions/11847793/are-tcp-socket-handles-inheritable) – spectras Aug 16 '18 at 19:53

0 Answers0