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

Method recv

3rdparty/libprocess/src/windows/poll_socket.cpp:179–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177
178
179Future<size_t> PollSocketImpl::recv(char* data, size_t size)
180{
181 // Need to hold a copy of `this` so that the underlying socket
182 // doesn't end up getting reused before we return from the call to
183 // `io::read` and end up reading data incorrectly.
184 auto self = shared(this);
185
186 return io::read(get(), data, size).then([self](size_t length) {
187 return length;
188 });
189}
190
191
192Future<size_t> PollSocketImpl::send(const char* data, size_t size)

Callers

nothing calls this directly

Calls 3

readFunction · 0.70
getFunction · 0.50
thenMethod · 0.45

Tested by

no test coverage detected