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

Method create

src/socket.cpp:40–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38namespace internal {
39
40Try<std::shared_ptr<SocketImpl>> SocketImpl::create(int_fd s, Kind kind)
41{
42 switch (kind) {
43 case Kind::POLL:
44 return PollSocketImpl::create(s);
45#ifdef USE_SSL_SOCKET
46 case Kind::SSL:
47 return LibeventSSLSocketImpl::create(s);
48#endif
49 }
50 UNREACHABLE();
51}
52
53
54Try<std::shared_ptr<SocketImpl>> SocketImpl::create(

Callers

nothing calls this directly

Calls 4

closeFunction · 0.85
cloexecFunction · 0.85
prepare_asyncFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected