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

Method DEFAULT_KIND

src/socket.cpp:105–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103
104
105SocketImpl::Kind SocketImpl::DEFAULT_KIND()
106{
107 // NOTE: Some tests may change the OpenSSL flags and reinitialize
108 // libprocess. In non-test code, the return value should be constant.
109#ifdef USE_SSL_SOCKET
110 return network::openssl::flags().enabled ? Kind::SSL : Kind::POLL;
111#else
112 return Kind::POLL;
113#endif
114}
115
116
117Try<Address> SocketImpl::address() const

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected