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

Method create

include/process/socket.hpp:481–490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

479
480template <>
481inline Try<Socket<network::Address>> Socket<network::Address>::create(
482 Address::Family family,
483 SocketImpl::Kind kind)
484{
485 Try<std::shared_ptr<SocketImpl>> impl = SocketImpl::create(family, kind);
486 if (impl.isError()) {
487 return Error(impl.error());
488 }
489 return Socket(impl.get());
490}
491
492
493template <>

Callers

nothing calls this directly

Calls 2

SocketClass · 0.85
getMethod · 0.45

Tested by

no test coverage detected