Lines Matching defs:wsi
59 * we use a different policy on the wsi itself that gives it a few tries before
60 * failing the wsi and using to outer retry policy to get dns to a different
108 callback_ntpc(struct lws *wsi, enum lws_callback_reasons reason, void *user,
112 lws_protocol_vh_priv_get(lws_get_vhost(wsi),
113 lws_get_protocol(wsi));
126 lws_protocol_vh_priv_zalloc(wsi->a.vhost, wsi->a.protocol,
128 v = (struct vhd_ntpc *)lws_protocol_vh_priv_get(wsi->a.vhost,
129 wsi->a.protocol);
130 v->context = lws_get_context(wsi);
131 v->vhost = lws_get_vhost(wsi);
132 v->protocol = lws_get_protocol(wsi);
136 if (!lws_system_get_ops(wsi->a.context) ||
137 !lws_system_get_ops(wsi->a.context)->set_clock) {
172 lws_callback_on_writable(wsi);
229 lws_sul_nonmonotonic_adjust(wsi->a.context, delta_us);
234 if (lws_system_get_ops(wsi->a.context) &&
235 lws_system_get_ops(wsi->a.context)->set_clock)
236 lws_system_get_ops(wsi->a.context)->set_clock((int64_t)ns / 1000);
239 lws_state_transition_steps(&wsi->a.context->mgr_system,
242 /* close the wsi */
251 * for rewrite according to the wsi retry policy.
259 lws_retry_sul_schedule_retry_wsi(wsi, &v->sul_write,
272 if (lws_write(wsi, pkt + LWS_PRE, sizeof(pkt) - LWS_PRE, 0) ==
279 lws_retry_sul_schedule(wsi->a.context, 0, &v->sul_conn, &bo,