MCPcopy Create free account
hub / github.com/3rdparty/libprocess / create

Method create

src/posix/libevent/libevent_ssl_socket.cpp:90–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88namespace internal {
89
90Try<std::shared_ptr<SocketImpl>> LibeventSSLSocketImpl::create(int_fd s)
91{
92 openssl::initialize();
93
94 if (!openssl::flags().enabled) {
95 return Error("SSL is disabled");
96 }
97
98 auto socket = std::make_shared<LibeventSSLSocketImpl>(s);
99 // See comment at 'initialize' declaration for why we call this.
100 socket->initialize();
101 return socket;
102}
103
104
105LibeventSSLSocketImpl::~LibeventSSLSocketImpl()

Callers

nothing calls this directly

Calls 2

initializeFunction · 0.50
initializeMethod · 0.45

Tested by

no test coverage detected