MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / recv_at_least_mutable

Method recv_at_least_mutable

net/basic_socket.cpp:252–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252ssize_t ISocketStream::recv_at_least_mutable(struct iovec *iov, int iovcnt,
253 size_t least, int flags /*=0*/) {
254 iovector_view v(iov, iovcnt);
255 return DOIO_LOOP_LAMBDA(recv(v.iov, v.iovcnt, flags), {
256 auto r = v.extract_front(ret);
257 assert(r == ret); (void)r;
258 return n < least;
259 });
260}
261
262int do_get_name(int fd, Getter getter, EndPoint& addr) {
263 sockaddr_storage storage;

Callers

nothing calls this directly

Calls 2

recvFunction · 0.85
extract_frontMethod · 0.45

Tested by

no test coverage detected