Home
last modified time | relevance | path

Searched refs:MAX_PACKET_BUF_SIZE (Results 1 – 15 of 15) sorted by relevance

/base/msdp/device_status/frameworks/native/src/
Dfd_listener.cpp40 char szBuf[MAX_PACKET_BUF_SIZE] = {}; in OnReadable()
42 ssize_t size = recv(fd, szBuf, MAX_PACKET_BUF_SIZE, MSG_DONTWAIT | MSG_NOSIGNAL); in OnReadable()
58 if (static_cast<size_t>(size) < MAX_PACKET_BUF_SIZE) { in OnReadable()
Dclient.cpp175 if (size == 0 || size > MAX_PACKET_BUF_SIZE) { in OnRecvMsg()
/base/sensors/sensor/utils/ipc/include/
Dproto.h29 static const size_t MAX_PACKET_BUF_SIZE = 256; variable
/base/sensors/sensor/rust/utils/socket_ipc_rust_ffi/src/
Dstream_session.rs26 const MAX_PACKET_BUF_SIZE: usize = 256; constant
117 if size == 0 || size > MAX_PACKET_BUF_SIZE { in session_send_msg()
Depoll_manager.rs22 const MAX_PACKET_BUF_SIZE: usize = 256; constant
Dstream_buffer.rs35 pub const MAX_PACKET_BUF_SIZE: usize = 256; constant
299 if !(0..=MAX_PACKET_BUF_SIZE).contains(&size) { in read_client_packets()
/base/msdp/device_status/utils/common/include/
Dproto.h26 static constexpr size_t MAX_PACKET_BUF_SIZE { 256 };
/base/msdp/device_status/services/native/src/
Ddevicestatus_dumper.cpp385 char buf[MAX_PACKET_BUF_SIZE] = {}; in CheckDefineOutput()
386 int32_t ret = snprintf_s(buf, MAX_PACKET_BUF_SIZE, MAX_PACKET_BUF_SIZE - 1, fmt, args...); in CheckDefineOutput()
Dstream_server.cpp205 char szBuf[MAX_PACKET_BUF_SIZE] = {}; in OnEpollRecv()
207 ssize_t size = recv(fd, szBuf, MAX_PACKET_BUF_SIZE, MSG_DONTWAIT | MSG_NOSIGNAL); in OnEpollRecv()
226 if (static_cast<size_t>(size) < MAX_PACKET_BUF_SIZE) { in OnEpollRecv()
/base/sensors/sensor/utils/ipc/src/
Dstream_socket.cpp55 if (head->size < 0 || head->size > MAX_PACKET_BUF_SIZE) { in OnReadPackets()
Dstream_session.cpp57 if ((size == 0) || (size > MAX_PACKET_BUF_SIZE)) { in SendMsg()
/base/msdp/device_status/utils/ipc/src/
Dstream_client.cpp50 if ((size == 0) || (size > MAX_PACKET_BUF_SIZE)) { in SendMsg()
Dstream_session.cpp46 if ((size == 0) || (size > MAX_PACKET_BUF_SIZE)) { in SendMsg()
Dstream_socket.cpp93 …f (static_cast<int32_t>(head->size) < 0 || static_cast<size_t>(head->size) > MAX_PACKET_BUF_SIZE) { in OnReadPackets()
/base/sensors/sensor/frameworks/native/sensor/src/
Dsensor_service_client.cpp381 if (size == 0 || size > MAX_PACKET_BUF_SIZE) { in ReceiveMessage()