Home
last modified time | relevance | path

Searched refs:nBytes (Results 1 - 6 of 6) sorted by relevance

/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/utils/
H A Dwifi_code_convert.cpp32 int32_t nBytes = 0; in Utf8Check() local
36 if (!IsUtf8Char(chr, nBytes)) { in Utf8Check()
48 bool WifiCodeConvertUtil::IsUtf8Char(unsigned char chr, int32_t &nBytes) in IsUtf8Char() argument
50 if (nBytes == 0) { in IsUtf8Char()
56 nBytes++; in IsUtf8Char()
59 if (nBytes < MIN_BYTES || nBytes > MAX_BYTES) { in IsUtf8Char()
62 nBytes--; in IsUtf8Char()
67 nBytes--; in IsUtf8Char()
H A Dwifi_code_convert.h36 static bool IsUtf8Char(unsigned char chr, int32_t &nBytes);
/foundation/communication/dhcp/services/dhcp_client/src/
H A Ddhcp_socket.cpp34 static uint16_t GetCheckSum(uint16_t *pData, int nBytes) in GetCheckSum() argument
39 while (nBytes >= DHCP_UINT16_BYTES) { in GetCheckSum()
41 nBytes -= DHCP_UINT16_BYTES; in GetCheckSum()
44 if (nBytes > 0) { in GetCheckSum()
233 ssize_t nBytes = sendto(nFd, &udpPackets, sendLen, 0, (struct sockaddr *)&rawAddr, sizeof(rawAddr)); in SendToDhcpPacket() local
234 if (nBytes <= 0) { in SendToDhcpPacket()
241 optionLen, sendLen, dhcpPackLen, nFd, destIndex, static_cast<int>(nBytes)); in SendToDhcpPacket()
244 return (nBytes <= 0) ? SOCKET_OPT_FAILED : SOCKET_OPT_SUCCESS; in SendToDhcpPacket()
271 ssize_t nBytes = write(nFd, sendPacket, sizeof(struct DhcpPacket)); in SendDhcpPacket() local
272 if (nBytes < in SendDhcpPacket()
407 int nBytes = read(rawFd, &udpPackets, sizeof(struct UdpDhcpPacket)); GetDhcpRawPacket() local
443 int nBytes = -1; GetDhcpKernelPacket() local
[all...]
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/net_helper/
H A Draw_socket.cpp155 int nBytes; in Recv() local
157 nBytes = read(socketFd_, buff, count); in Recv()
158 if (nBytes == -1) { in Recv()
163 } while (nBytes == -1); in Recv()
165 return nBytes < 0 ? 0 : nBytes; in Recv()
H A Ddns_checker.cpp169 int nBytes; in recvDnsData() local
171 nBytes = read(dnsSocket, buff, size); in recvDnsData()
172 if (nBytes < 0) { in recvDnsData()
176 } while (nBytes == -1 && isRunning); in recvDnsData()
178 return nBytes < 0 ? 0 : nBytes; in recvDnsData()
/foundation/communication/dhcp/services/utils/src/
H A Ddhcp_arp_checker.cpp319 int32_t nBytes; in RecvData() local
321 nBytes = read(m_socketFd, buff, count); in RecvData()
322 if (nBytes == -1) { in RecvData()
327 } while (nBytes == -1); in RecvData()
329 return nBytes < 0 ? 0 : nBytes; in RecvData()

Completed in 3 milliseconds