Forum Bugs

Read from STDIN socket

zdm
Hi.

I found, that prince won't read from STDIN under windows, when STDIN is TCP socket handle.
Under linux this works without problems.
Could this behaviour be fixed?
wangp
Hi,

It appears to work fine if the socket is created with WSASocket() instead of socket(), as suggested on stackoverflow: http://stackoverflow.com/questions/4993119/redirect-io-of-process-to-windows-socket

I have attached my test program.
  1. launch.c2.3 kB
zdm
Interesting, I will try.
Thank you.