Hi,

I want to write a network service in Ruby, which is started by inetd
and uses the openssl library. The problem:


inetd gives in and output as usual on file descriptor 0 and 1. 
Therefore ruby provides the read and the write handle of the socket as 
STDIN and STDOUT: One for reading, one for writing.


But openssl requires a single bidirectional Socket for the 
OpenSSL::SSL::SSLSocket.new call.



How could I make a single socket out of STDIN/STDOUT or filedescriptor
0/1 ?


regards
Hadmut