Home
last modified time | relevance | path

Searched refs:MAX_PACKET_BUF_SIZE (Results 1 - 20 of 20) sorted by relevance

/base/msdp/device_status/frameworks/native/src/
H A Dfd_listener.cpp40 char szBuf[MAX_PACKET_BUF_SIZE] = { 0 }; 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()
H A Dclient.cpp180 if (size == 0 || size > MAX_PACKET_BUF_SIZE) { in OnRecvMsg()
/base/sensors/sensor/utils/ipc/include/
H A Dproto.h29 static constexpr size_t MAX_PACKET_BUF_SIZE = 256; member
/base/sensors/sensor/rust/utils/socket_ipc_rust_ffi/src/
H A Dstream_session.rs26 const MAX_PACKET_BUF_SIZE: usize = 256; consts
117 if size == 0 || size > MAX_PACKET_BUF_SIZE { in session_send_msg()
118 error!(LOG_LABEL, "size is either equal to 0 or greater than MAX_PACKET_BUF_SIZE, size: {}", size); in session_send_msg()
H A Depoll_manager.rs22 const MAX_PACKET_BUF_SIZE: usize = 256; consts
H A Dstream_buffer.rs35 pub const MAX_PACKET_BUF_SIZE: usize = 256; consts
302 if !(0..=MAX_PACKET_BUF_SIZE).contains(&size) { in read_client_packets()
/base/msdp/device_status/utils/common/include/
H A Dproto.h29 inline constexpr size_t MAX_PACKET_BUF_SIZE { MAX_STREAM_BUF_SIZE };
/base/msdp/device_status/services/native/src/
H A Ddevicestatus_dumper.cpp383 char buf[MAX_PACKET_BUF_SIZE] = { 0 }; in CheckDefineOutput()
384 int32_t ret = snprintf_s(buf, MAX_PACKET_BUF_SIZE, MAX_PACKET_BUF_SIZE - 1, fmt, args...); in CheckDefineOutput()
H A Dstream_server.cpp218 char szBuf[MAX_PACKET_BUF_SIZE] = { 0 }; in OnEpollRecv()
220 ssize_t size = recv(fd, szBuf, MAX_PACKET_BUF_SIZE, MSG_DONTWAIT | MSG_NOSIGNAL); in OnEpollRecv()
239 if (static_cast<size_t>(size) < MAX_PACKET_BUF_SIZE) { in OnEpollRecv()
/base/msdp/device_status/intention/ipc/socket/src/
H A Dsocket_connection.cpp59 char buf[MAX_PACKET_BUF_SIZE] {}; in OnReadable()
H A Dsocket_session.cpp61 if ((size == 0) || (size > MAX_PACKET_BUF_SIZE)) { in SendMsg()
H A Dsocket_session_manager.cpp178 char buf[MAX_PACKET_BUF_SIZE] {}; in OnEpollIn()
/base/msdp/device_status/utils/ipc/src/
H A Dstream_client.cpp51 if ((size == 0) || (size > MAX_PACKET_BUF_SIZE)) { in SendMsg()
H A Dstream_session.cpp46 if ((size == 0) || (size > MAX_PACKET_BUF_SIZE)) { in SendMsg()
H A Dstream_socket.cpp85 if ((static_cast<int32_t>(head->size) < 0) || (static_cast<size_t>(head->size) > MAX_PACKET_BUF_SIZE)) { in OnReadPackets()
/base/sensors/sensor/utils/ipc/src/
H A Dstream_socket.cpp54 if (head->size < 0 || head->size > MAX_PACKET_BUF_SIZE) { in OnReadPackets()
H A Dstream_session.cpp57 if ((size == 0) || (size > MAX_PACKET_BUF_SIZE)) { in SendMsg()
/base/msdp/device_status/intention/services/intention_service/src/
H A Dintention_dumper.cpp176 char buf[MAX_PACKET_BUF_SIZE] {}; in CheckDefineOutput()
/base/msdp/device_status/intention/adapters/dsoftbus_adapter/src/
H A Ddsoftbus_adapter_impl.cpp204 if (buffer.Size() > MAX_PACKET_BUF_SIZE) { in SendPacket()
246 if (buffer.Size() > MAX_PACKET_BUF_SIZE) { in BroadcastPacket()
556 if ((head->size < 0) || (static_cast<size_t>(head->size) > MAX_PACKET_BUF_SIZE)) { in HandleSessionData()
/base/sensors/sensor/frameworks/native/src/
H A Dsensor_service_client.cpp475 if (size == 0 || size > MAX_PACKET_BUF_SIZE) { in ReceiveMessage()

Completed in 9 milliseconds