Lines Matching refs:rtv
49 #define SOCK_OP_AND_LOG(buf, length, opable, rtv, exe) \ argument
55 rtv = (exe); \
56 if (-1 == rtv) { \
65 ssize_t rtv = -1; in send() local
66 SOCK_OP_AND_LOG(buf, len, isValid(), rtv, sendto(buf, len, flags, destAddr, addrlen)); in send()
67 return rtv; in send()
71 ssize_t rtv = -1; in recv() local
75 SOCK_OP_AND_LOG(dataCb.get(), mMaxTxSize, isValid(), rtv, in recv()
77 return rtv; in recv()
81 ssize_t rtv = -1; in sendto() local
83 rtv = ::sendto(mSid, buf, len, flags, destAddr, addrlen); in sendto()
86 rtv = ::sendto(mSid, head.c_str(), head.length(), flags, destAddr, addrlen); in sendto()
87 if (rtv > 0) { in sendto()
88 for (size_t offset = 0; offset < len && rtv > 0; offset += rtv) { in sendto()
89 rtv = ::sendto(mSid, (char*)buf + offset, min(len - offset, (size_t)mMaxTxSize), in sendto()
92 rtv = (rtv > 0) ? (head.length() + len) : -1; in sendto()
95 return rtv; in sendto()