MCPcopy Create free account
hub / github.com/apache/mesos / create

Method create

3rdparty/libprocess/src/socket.cpp:45–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43namespace internal {
44
45Try<std::shared_ptr<SocketImpl>> SocketImpl::create(int_fd s, Kind kind)
46{
47 switch (kind) {
48 case Kind::POLL:
49 return PollSocketImpl::create(s);
50#ifdef USE_SSL_SOCKET
51 case Kind::SSL:
52#ifdef USE_LIBEVENT
53 return LibeventSSLSocketImpl::create(s);
54#else
55 return OpenSSLSocketImpl::create(s);
56#endif // USE_LIBEVENT
57#endif // USE_SSL_SOCKET
58 }
59 UNREACHABLE();
60}
61
62
63Try<std::shared_ptr<SocketImpl>> SocketImpl::create(

Callers

nothing calls this directly

Calls 9

prepare_asyncFunction · 0.70
closeFunction · 0.70
errorMethod · 0.65
createFunction · 0.50
socketFunction · 0.50
ErrorClass · 0.50
cloexecFunction · 0.50
isErrorMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected