Lines Matching refs:vhd

68 	struct per_vhost_data__minimal *vhd =
71 vhd->i.context = vhd->context;
72 vhd->i.port = 443;
73 vhd->i.address = "libwebsockets.org";
74 vhd->i.path = "/";
75 vhd->i.host = vhd->i.address;
76 vhd->i.origin = vhd->i.address;
77 vhd->i.ssl_connection = 1;
79 vhd->i.protocol = "dumb-increment-protocol";
80 vhd->i.local_protocol_name = "lws-minimal-proxy";
81 vhd->i.pwsi = &vhd->client_wsi;
83 if (!lws_client_connect_via_info(&vhd->i))
84 lws_sul_schedule(vhd->context, 0, &vhd->sul,
94 struct per_vhost_data__minimal *vhd =
107 vhd = lws_protocol_vh_priv_zalloc(lws_get_vhost(wsi),
110 vhd->context = lws_get_context(wsi);
111 vhd->protocol = lws_get_protocol(wsi);
112 vhd->vhost = lws_get_vhost(wsi);
114 vhd->ring = lws_ring_create(sizeof(struct msg), 8,
116 if (!vhd->ring)
119 sul_connect_attempt(&vhd->sul);
123 lws_ring_destroy(vhd->ring);
124 lws_sul_cancel(&vhd->sul);
130 /* add ourselves to the list of live pss held in the vhd */
131 lws_ll_fwd_insert(pss, pss_list, vhd->pss_list);
132 pss->tail = lws_ring_get_oldest_tail(vhd->ring);
139 pss, vhd->pss_list);
143 pmsg = lws_ring_get_element(vhd->ring, &pss->tail);
156 vhd->ring, /* lws_ring object */
160 vhd->pss_list, /* head of list of objects with tails */
166 if (lws_ring_get_element(vhd->ring, &pss->tail))
176 vhd->client_wsi = NULL;
177 lws_sul_schedule(vhd->context, 0, &vhd->sul,
187 if (!vhd->pss_list)
190 if (!lws_ring_get_count_free_elements(vhd->ring)) {
204 if (!lws_ring_insert(vhd->ring, &amsg, 1)) {
215 ppss, vhd->pss_list) {
221 vhd->client_wsi = NULL;
222 lws_sul_schedule(vhd->context, 0, &vhd->sul,