MCPcopy Create free account
hub / github.com/apache/mesos / bind

Method bind

3rdparty/libprocess/src/socket.cpp:142–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140
141
142Try<Address> SocketImpl::bind(const Address& address)
143{
144 Try<Nothing> bind = network::bind(get(), address);
145 if (bind.isError()) {
146 return Error(bind.error());
147 }
148
149 // Lookup and store assigned IP and assigned port.
150 return network::address(get());
151}
152
153
154Future<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 6

getFunction · 0.70
addressFunction · 0.70
errorMethod · 0.65
bindFunction · 0.50
ErrorClass · 0.50
isErrorMethod · 0.45

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