MCPcopy Create free account
hub / github.com/apple/foundationdb / init

Function init

flow/Net2.actor.cpp:1142–1147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1140 bool has_trusted_peer;
1141
1142 void init() {
1143 // Socket settings that have to be set after connect or accept succeeds
1144 socket.non_blocking(true);
1145 socket.set_option(boost::asio::ip::tcp::no_delay(true));
1146 platform::setCloseOnExec(socket.native_handle());
1147 }
1148
1149 void closeSocket() {
1150 boost::system::error_code cancelError;

Callers 15

TraceEventMethod · 0.70
initMethod · 0.70
Trace.cppFile · 0.70
logMethod · 0.70
mainFunction · 0.70
acceptMethod · 0.70
acceptMethod · 0.70
initializeMethod · 0.70
detailMethod · 0.50
PacketWriterMethod · 0.50
initMethod · 0.50

Calls 3

setCloseOnExecFunction · 0.85
set_optionMethod · 0.80
native_handleMethod · 0.45

Tested by

no test coverage detected