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

Function bind

include/process/network.hpp:46–56  ·  view source on GitHub ↗

TODO(benh): Remove and defer to Socket::bind.

Source from the content-addressed store, hash-verified

44
45// TODO(benh): Remove and defer to Socket::bind.
46inline Try<Nothing> bind(int_fd s, const Address& address)
47{
48 sockaddr_storage storage = address;
49
50 const socklen_t address_size = static_cast<socklen_t>(address.size());
51 if (net::bind(s, (sockaddr*) &storage, address_size) < 0) {
52 return ErrnoError("Failed to bind on " + stringify(address));
53 }
54
55 return Nothing();
56}
57
58
59// TODO(benh): Remove and defer to Socket::connect.

Callers 15

subprocessFunction · 0.85
scheduleTickFunction · 0.85
synchronizedFunction · 0.85
initializeFunction · 0.85
ignore_recv_dataFunction · 0.85
link_connectMethod · 0.85
linkMethod · 0.85
send_connectMethod · 0.85
sendMethod · 0.85
bindMethod · 0.85
connectFunction · 0.85
cloneChildFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by 4

TEST_FFunction · 0.68
on_acceptFunction · 0.68
mainFunction · 0.68
TESTFunction · 0.68