Home
last modified time | relevance | path

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

12

/ohos5.0/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()
/ohos5.0/foundation/multimodalinput/input/frameworks/proxy/module_loader/src/
H A Dmmi_fd_listener.cpp43 char szBuf[MAX_PACKET_BUF_SIZE] = {}; in OnReadable()
48 while (oneRecvSize < MAX_PACKET_BUF_SIZE) { in OnReadable()
49 ssize_t size = recv(fd, szBuf + oneRecvSize, MAX_PACKET_BUF_SIZE - oneRecvSize, in OnReadable()
/ohos5.0/foundation/multimodalinput/input/util/common/include/
H A Dconfig_multimodal.h34 #define MAX_PACKET_BUF_SIZE (1024*8) macro
36 #define MAX_STREAM_BUF_SIZE (MAX_PACKET_BUF_SIZE*2)
/ohos5.0/base/sensors/sensor/rust/utils/socket_ipc_rust_ffi/src/
H A Dstream_session.rs26 const MAX_PACKET_BUF_SIZE: usize = 256; const
117 if size == 0 || size > MAX_PACKET_BUF_SIZE { in session_send_msg()
H A Depoll_manager.rs22 const MAX_PACKET_BUF_SIZE: usize = 256; const
H A Dstream_buffer.rs35 pub const MAX_PACKET_BUF_SIZE: usize = 256; const
300 if !(0..=MAX_PACKET_BUF_SIZE).contains(&size) { in read_client_packets()
/ohos5.0/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()
/ohos5.0/base/sensors/sensor/utils/ipc/include/
H A Dproto.h29 static constexpr size_t MAX_PACKET_BUF_SIZE = 256; variable
/ohos5.0/foundation/multimodalinput/input/service/module_loader/src/
H A Duds_server.cpp265 char szBuf[MAX_PACKET_BUF_SIZE] = {}; in OnEpollRecv()
267 auto size = recv(fd, szBuf, MAX_PACKET_BUF_SIZE, MSG_DONTWAIT | MSG_NOSIGNAL); in OnEpollRecv()
286 if (size < MAX_PACKET_BUF_SIZE) { in OnEpollRecv()
/ohos5.0/base/msdp/device_status/utils/common/include/
H A Dproto.h29 inline constexpr size_t MAX_PACKET_BUF_SIZE { MAX_STREAM_BUF_SIZE };
/ohos5.0/foundation/multimodalinput/input/intention/ipc/socket/src/
H A Dsocket_connection.cpp59 char buf[MAX_PACKET_BUF_SIZE] {}; in OnReadable()
H A Dsocket_session.cpp62 if ((size == 0) || (size > MAX_PACKET_BUF_SIZE)) { in SendMsg()
/ohos5.0/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()
/ohos5.0/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()
/ohos5.0/foundation/multimodalinput/input/util/socket/src/
H A Duds_client.cpp49 if ((size == 0) || (size > MAX_PACKET_BUF_SIZE)) { in SendMsg()
H A Duds_socket.cpp103 if (head->size < 0 || head->size > MAX_PACKET_BUF_SIZE) { in OnReadPackets()
/ohos5.0/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 …static_cast<int32_t>(head->size) < 0) || (static_cast<size_t>(head->size) > MAX_PACKET_BUF_SIZE)) { in OnReadPackets()
/ohos5.0/foundation/multimodalinput/input/intention/adapters/dsoftbus_adapter/src/
H A Ddsoftbus_adapter_impl.cpp198 if (buffer.Size() > MAX_PACKET_BUF_SIZE) { in SendPacket()
240 if (buffer.Size() > MAX_PACKET_BUF_SIZE) { in BroadcastPacket()
542 if ((head->size < 0) || (static_cast<size_t>(head->size) > MAX_PACKET_BUF_SIZE)) { in HandleSessionData()
/ohos5.0/base/msdp/device_status/intention/adapters/dsoftbus_adapter/src/
H A Ddsoftbus_adapter_impl.cpp193 if (buffer.Size() > MAX_PACKET_BUF_SIZE) { in SendPacket()
235 if (buffer.Size() > MAX_PACKET_BUF_SIZE) { in BroadcastPacket()
544 if ((head->size < 0) || (static_cast<size_t>(head->size) > MAX_PACKET_BUF_SIZE)) { in HandleSessionData()

12