Home
last modified time | relevance | path

Searched refs:pmsg (Results 1 – 25 of 28) sorted by relevance

12

/external/libwebsockets/minimal-examples/ws-server/minimal-ws-server-echo/
Dprotocol_lws_minimal_server_echo.c69 const struct msg *pmsg; in callback_minimal_server_echo() local
115 pmsg = lws_ring_get_element(pss->ring, &pss->tail); in callback_minimal_server_echo()
116 if (!pmsg) { in callback_minimal_server_echo()
122 pmsg->binary ? LWS_WRITE_BINARY : LWS_WRITE_TEXT, in callback_minimal_server_echo()
123 pmsg->first, pmsg->final); in callback_minimal_server_echo()
126 m = lws_write(wsi, ((unsigned char *)pmsg->payload) + in callback_minimal_server_echo()
127 LWS_PRE, pmsg->len, flags); in callback_minimal_server_echo()
128 if (m < (int)pmsg->len) { in callback_minimal_server_echo()
134 m, flags, pmsg->first, pmsg->final); in callback_minimal_server_echo()
150 if ((*vhd->options & 1) && pmsg && pmsg->final) in callback_minimal_server_echo()
/external/libwebsockets/minimal-examples/ws-client/minimal-ws-client-echo/
Dprotocol_lws_minimal_client_echo.c109 const struct msg *pmsg; in callback_minimal_client_echo() local
167 pmsg = lws_ring_get_element(pss->ring, &pss->tail); in callback_minimal_client_echo()
168 if (!pmsg) { in callback_minimal_client_echo()
174 pmsg->binary ? LWS_WRITE_BINARY : LWS_WRITE_TEXT, in callback_minimal_client_echo()
175 pmsg->first, pmsg->final); in callback_minimal_client_echo()
178 m = lws_write(wsi, ((unsigned char *)pmsg->payload) + in callback_minimal_client_echo()
179 LWS_PRE, pmsg->len, flags); in callback_minimal_client_echo()
180 if (m < (int)pmsg->len) { in callback_minimal_client_echo()
186 m, flags, pmsg->first, pmsg->final); in callback_minimal_client_echo()
188 if ((*vhd->options & 1) && pmsg && pmsg->final) in callback_minimal_client_echo()
/external/libwebsockets/minimal-examples/ws-server/minimal-ws-broker/
Dprotocol_lws_minimal.c86 const struct msg *pmsg; in callback_minimal() local
131 pmsg = lws_ring_get_element(vhd->ring, &pss->tail); in callback_minimal()
132 if (!pmsg) in callback_minimal()
136 m = lws_write(wsi, ((unsigned char *)pmsg->payload) + LWS_PRE, in callback_minimal()
137 pmsg->len, LWS_WRITE_TEXT); in callback_minimal()
138 if (m < (int)pmsg->len) { in callback_minimal()
/external/libwebsockets/minimal-examples/client-server/minimal-ws-proxy/
Dprotocol_lws_minimal.c91 const struct msg *pmsg; in callback_minimal() local
138 pmsg = lws_ring_get_element(vhd->ring, &pss->tail); in callback_minimal()
139 if (!pmsg) in callback_minimal()
143 m = lws_write(wsi, ((unsigned char *)pmsg->payload) + LWS_PRE, in callback_minimal()
144 pmsg->len, LWS_WRITE_TEXT); in callback_minimal()
145 if (m < (int)pmsg->len) { in callback_minimal()
/external/libwebsockets/minimal-examples/ws-server/minimal-ws-server-ring/
Dprotocol_lws_minimal.c160 const struct msg *pmsg; in callback_minimal() local
201 pmsg = lws_ring_get_element(vhd->ring, &pss->tail); in callback_minimal()
202 if (!pmsg) in callback_minimal()
206 m = lws_write(wsi, ((unsigned char *)pmsg->payload) + in callback_minimal()
207 LWS_PRE, pmsg->len, LWS_WRITE_TEXT); in callback_minimal()
208 if (m < (int)pmsg->len) { in callback_minimal()
/external/libwebsockets/minimal-examples/ws-server/minimal-ws-server-threads/
Dprotocol_lws_minimal.c150 const struct msg *pmsg; in callback_minimal() local
226 pmsg = lws_ring_get_element(vhd->ring, &pss->tail); in callback_minimal()
227 if (!pmsg) { in callback_minimal()
233 m = lws_write(wsi, ((unsigned char *)pmsg->payload) + LWS_PRE, in callback_minimal()
234 pmsg->len, LWS_WRITE_TEXT); in callback_minimal()
235 if (m < (int)pmsg->len) { in callback_minimal()
/external/webrtc/rtc_base/
Dthread.cc430 bool Thread::Peek(Message* pmsg, int cmsWait) { in Peek() argument
432 *pmsg = msgPeek_; in Peek()
435 if (!Get(pmsg, cmsWait)) in Peek()
437 msgPeek_ = *pmsg; in Peek()
442 bool Thread::Get(Message* pmsg, int cmsWait, bool process_io) { in Get() argument
447 *pmsg = msgPeek_; in Get()
486 *pmsg = messages_.front(); in Get()
492 if (MQID_DISPOSE == pmsg->message_id) { in Get()
493 RTC_DCHECK(nullptr == pmsg->phandler); in Get()
494 delete pmsg->pdata; in Get()
[all …]
Dvirtual_socket_server.cc389 void VirtualSocket::OnMessage(Message* pmsg) { in OnMessage() argument
390 if (pmsg->message_id == MSG_ID_PACKET) { in OnMessage()
391 RTC_DCHECK(nullptr != pmsg->pdata); in OnMessage()
392 Packet* packet = static_cast<Packet*>(pmsg->pdata); in OnMessage()
399 } else if (pmsg->message_id == MSG_ID_CONNECT) { in OnMessage()
400 RTC_DCHECK(nullptr != pmsg->pdata); in OnMessage()
401 MessageAddress* data = static_cast<MessageAddress*>(pmsg->pdata); in OnMessage()
415 } else if (pmsg->message_id == MSG_ID_DISCONNECT) { in OnMessage()
425 } else if (pmsg->message_id == MSG_ID_ADDRESS_BOUND) { in OnMessage()
427 } else if (pmsg->message_id == MSG_ID_SIGNALREADEVENT) { in OnMessage()
Dthread.h238 virtual bool Get(Message* pmsg,
241 virtual bool Peek(Message* pmsg, int cmsWait = 0);
261 virtual void Dispatch(Message* pmsg);
Dvirtual_socket_unittest.cc72 void OnMessage(Message* pmsg) override { in OnMessage()
73 ASSERT_EQ(1u, pmsg->message_id); in OnMessage()
138 void OnMessage(Message* pmsg) override { in OnMessage()
139 ASSERT_EQ(1u, pmsg->message_id); in OnMessage()
Dvirtual_socket_server.h335 void OnMessage(Message* pmsg) override;
/external/linux-kselftest/tools/testing/selftests/pstore/
Dpstore_post_reboot_tests47 check_files_exist pmsg
63 nr_matched=`grep -c "$TEST_STRING_PATTERN" pmsg-${backend}-0`
65 grep -q "$TEST_STRING_PATTERN"$prev_uuid pmsg-${backend}-0
/external/libwebsockets/minimal-examples/ws-client/minimal-ws-client-tx/
Dminimal-ws-client.c149 const struct msg *pmsg; in callback_minimal_broker() local
218 pmsg = lws_ring_get_element(vhd->ring, &vhd->tail); in callback_minimal_broker()
219 if (!pmsg) in callback_minimal_broker()
223 m = lws_write(wsi, ((unsigned char *)pmsg->payload) + LWS_PRE, in callback_minimal_broker()
224 pmsg->len, LWS_WRITE_TEXT); in callback_minimal_broker()
225 if (m < (int)pmsg->len) { in callback_minimal_broker()
/external/libwebsockets/minimal-examples/dbus-server/minimal-dbus-ws-proxy/
Dprotocol_lws_minimal_dbus_ws_proxy.c641 const struct msg *pmsg; in callback_minimal_dbus_wsproxy() local
700 pmsg = lws_ring_get_element(pss->ring_out, &pss->ring_out_tail); in callback_minimal_dbus_wsproxy()
701 if (!pmsg) { in callback_minimal_dbus_wsproxy()
707 pmsg->binary ? LWS_WRITE_BINARY : LWS_WRITE_TEXT, in callback_minimal_dbus_wsproxy()
708 pmsg->first, pmsg->final); in callback_minimal_dbus_wsproxy()
711 m = lws_write(wsi, ((unsigned char *)pmsg->payload) + LWS_PRE, in callback_minimal_dbus_wsproxy()
712 pmsg->len, flags); in callback_minimal_dbus_wsproxy()
713 if (m < (int)pmsg->len) { in callback_minimal_dbus_wsproxy()
719 m, flags, pmsg->first, pmsg->final); in callback_minimal_dbus_wsproxy()
/external/libwebsockets/minimal-examples/ws-server/minimal-ws-server-threads-smp/
Dprotocol_lws_minimal.c150 const struct msg *pmsg; in callback_minimal() local
227 pmsg = lws_ring_get_element(vhd->ring, &pss->tail); in callback_minimal()
228 if (!pmsg) { in callback_minimal()
235 (char *)pmsg->payload + LWS_PRE); in callback_minimal()
/external/libwebsockets/minimal-examples/http-server/minimal-http-server-sse-ring/
Dminimal-http-server-sse-ring.c152 const struct msg *pmsg; in callback_sse() local
253 pmsg = lws_ring_get_element(vhd->ring, &pss->tail); in callback_sse()
254 if (!pmsg) in callback_sse()
259 (const char *)pmsg->payload); in callback_sse()
/external/webrtc/pc/
Dchannel.cc739 void BaseChannel::OnMessage(rtc::Message* pmsg) { in OnMessage() argument
741 switch (pmsg->message_id) { in OnMessage()
746 static_cast<SendPacketMessageData*>(pmsg->pdata); in OnMessage()
747 bool rtcp = pmsg->message_id == MSG_SEND_RTCP_PACKET; in OnMessage()
1400 void RtpDataChannel::OnMessage(rtc::Message* pmsg) { in OnMessage() argument
1401 switch (pmsg->message_id) { in OnMessage()
1404 static_cast<DataChannelReadyToSendMessageData*>(pmsg->pdata); in OnMessage()
1412 static_cast<DataReceivedMessageData*>(pmsg->pdata); in OnMessage()
1418 BaseChannel::OnMessage(pmsg); in OnMessage()
Dchannel.h255 void OnMessage(rtc::Message* pmsg) override;
492 void OnMessage(rtc::Message* pmsg) override;
/external/webrtc/p2p/base/
Dstun_request.cc232 void StunRequest::OnMessage(rtc::Message* pmsg) { in OnMessage() argument
234 RTC_DCHECK(pmsg->message_id == MSG_STUN_SEND); in OnMessage()
Dtcp_port.cc514 void TCPConnection::OnMessage(rtc::Message* pmsg) { in OnMessage() argument
515 switch (pmsg->message_id) { in OnMessage()
528 Connection::OnMessage(pmsg); in OnMessage()
Dstun_request.h146 void OnMessage(rtc::Message* pmsg) override;
Dtcp_port.h131 void OnMessage(rtc::Message* pmsg) override;
Dconnection.h367 void OnMessage(rtc::Message* pmsg) override;
Dport.cc821 void Port::OnMessage(rtc::Message* pmsg) { in OnMessage() argument
822 RTC_DCHECK(pmsg->message_id == MSG_DESTROY_IF_DEAD); in OnMessage()
Dport.h315 void OnMessage(rtc::Message* pmsg) override;

12