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

Method bind

src/socket.cpp:133–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131
132
133Try<Address> SocketImpl::bind(const Address& address)
134{
135 Try<Nothing> bind = network::bind(get(), address);
136 if (bind.isError()) {
137 return Error(bind.error());
138 }
139
140 // Lookup and store assigned IP and assigned port.
141 return network::address(get());
142}
143
144
145Future<string> SocketImpl::recv(const Option<ssize_t>& size)

Callers 8

createMethod · 0.45
initializeFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_PFunction · 0.45
TEST_FFunction · 0.45
mainFunction · 0.45
TEST_PFunction · 0.45

Calls 3

bindFunction · 0.85
getFunction · 0.85
addressFunction · 0.70

Tested by 6

TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_PFunction · 0.36
TEST_FFunction · 0.36
mainFunction · 0.36
TEST_PFunction · 0.36