Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
SSL
SSL.sslfile

Method SSL.sslfile()->create()


Method create

void SSL.sslfile(Stdio.File stream, SSL.context ctx, int|void is_client, int|void is_blocking)

Description

Create a connection over stream , which should be an open socket or pipe. ctx is the SSL context. If is_client is set then a client-side connection is started, server-side otherwise. If is_blocking is set then the stream is initially set in blocking mode, nonblocking mode otherwise.

The backend used by stream is taken over and restored after the connection is closed (see close ). The callbacks and id in stream are overwritten.