Hi,


Joshua Juran wrote:

On Apr 1, 2005, at 4:37 AM, alok wrote:

Can someone exactly explain why one cannot typecast a bio( ) to a UNIX domain socket/IPC/fd?


I'll give this a shot.

Unix allows you to read() to and write() from stream-like objects such as files, pipes, character devices, and various kinds of sockets polymorphically because these are all maintained by the kernel. OpenSSL objects are all user-level, so you can't pass them to kernel calls.


You can always create a back to back unix socket and write from one to the other (fork() if u need a child etc/or a thread if u like)

It is still easier to use in most scenarios (and would reduce Eric Rescolla's tutorial size :) )

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to