* ruby from inetd/openssl: Socket in/out ?
@ 2006-08-28 15:15 Hadmut Danisch
0 siblings, 0 replies; only message in thread
From: Hadmut Danisch @ 2006-08-28 15:15 UTC (permalink / raw
To: ruby-core
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-08-28 15:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-28 15:15 ruby from inetd/openssl: Socket in/out ? Hadmut Danisch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).