Home
last modified time | relevance | path

Searched refs:position_tx (Results 1 – 2 of 2) sorted by relevance

/external/libwebsockets/minimal-examples/ws-server/minimal-ws-server-pmd-bulk/
Dprotocol_lws_minimal_pmd_bulk.c59 int position_tx, position_rx; member
117 if (pss->position_tx == MESSAGE_SIZE) in callback_minimal_pmd_bulk()
130 if (n > MESSAGE_SIZE - pss->position_tx) in callback_minimal_pmd_bulk()
131 n = MESSAGE_SIZE - pss->position_tx; in callback_minimal_pmd_bulk()
133 flags = lws_write_ws_flags(LWS_WRITE_BINARY, !pss->position_tx, in callback_minimal_pmd_bulk()
134 pss->position_tx + n == MESSAGE_SIZE); in callback_minimal_pmd_bulk()
145 m = pss->position_tx % REPEAT_STRING_LEN; in callback_minimal_pmd_bulk()
150 pss->position_tx += s; in callback_minimal_pmd_bulk()
155 pss->position_tx += n; in callback_minimal_pmd_bulk()
167 if (pss->position_tx != MESSAGE_SIZE) /* if more to do... */ in callback_minimal_pmd_bulk()
/external/libwebsockets/minimal-examples/ws-client/minimal-ws-client-pmd-bulk/
Dprotocol_lws_minimal_pmd_bulk.c59 int position_tx, position_rx; member
157 if (pss->position_tx == MESSAGE_SIZE) in callback_minimal_pmd_bulk()
164 if (n > MESSAGE_SIZE - pss->position_tx) in callback_minimal_pmd_bulk()
165 n = MESSAGE_SIZE - pss->position_tx; in callback_minimal_pmd_bulk()
167 flags = lws_write_ws_flags(LWS_WRITE_BINARY, !pss->position_tx, in callback_minimal_pmd_bulk()
168 pss->position_tx + n == MESSAGE_SIZE); in callback_minimal_pmd_bulk()
179 m = pss->position_tx % REPEAT_STRING_LEN; in callback_minimal_pmd_bulk()
184 pss->position_tx += s; in callback_minimal_pmd_bulk()
189 pss->position_tx += n; in callback_minimal_pmd_bulk()
200 if (pss->position_tx != MESSAGE_SIZE) /* if more to do... */ in callback_minimal_pmd_bulk()
[all …]