Lines Matching defs:protocol
331 /* external POLL support via protocol 0 */
443 /* remove also from external POLL support via protocol 0 */
479 if (!wsi || (!wsi->a.protocol && !wsi->event_pipe) ||
554 * stitch protocol choice into the vh protocol linked list
603 const struct lws_protocols *protocol)
608 if (protocol < vhost->protocols ||
609 protocol >= (vhost->protocols + vhost->count_protocols)) {
611 "protocol %p is not from vhost %p (%p - %p)",
612 protocol, vhost->protocols, vhost,
618 n = (int)(protocol - vhost->protocols);
624 assert(wsi->a.protocol == protocol);
634 const struct lws_protocols *protocol)
646 if (protocol->callback ==
648 !strcmp(protocol->name, vhost->protocols[n].name))