Lines Matching defs:len
37 ssize_t len = 0;
38 while ((len = recv(client, buf + recvLen, totalLen - recvLen, flags)) < 0 &&
42 if (len <= 0) {
43 LOGE("Recv payload in while failed, len = %{public}ld, errno = %{public}d", static_cast<long>(len), errno);
46 recvLen += static_cast<size_t>(len);
65 ssize_t len = send(client, buf + sendLen, totalLen - sendLen, flags);
66 if (len <= 0) {
67 LOGE("Send Message in while failed, len = %{public}ld, errno = %{public}d", static_cast<long>(len), errno);
70 sendLen += static_cast<size_t>(len);
75 uint64_t NetToHostLongLong(uint8_t* buf, uint32_t len)
78 for (uint32_t i = 0; i < len; i++) {
80 if ((i + 1) < len) {