Lines Matching refs:prot
138 lws_role_call_adoption_bind(struct lws *wsi, int type, const char *prot)
152 if (!prot)
153 prot = wsi->a.vhost->listen_accept_protocol;
164 adoption_bind(wsi, type, prot);
179 wsi->a.vhost->listen_accept_role, prot, type);
190 adoption_bind(wsi, type, prot))
198 adoption_bind(wsi, type, prot))
209 adoption_bind(wsi, type, prot))
246 const struct lws_protocols *prot, int size)
250 if (!vhost || !prot || !vhost->protocols || !prot->name)
263 while (n < vhost->count_protocols && &vhost->protocols[n] != prot)
270 !strcmp(vhost->protocols[n].name, prot->name))
276 lwsl_vhost_err(vhost, "unknown protocol %p", prot);
287 const struct lws_protocols *prot)
292 !vhost->protocol_vh_privs || !prot || !prot->name)
295 while (n < vhost->count_protocols && &vhost->protocols[n] != prot)
302 !strcmp(vhost->protocols[n].name, prot->name))
308 lwsl_vhost_err(vhost, "unknown protocol %p", prot);