Lines Matching refs:info

264 	 * the info/ssi from the server SS (so the SS callbacks defined there),
269 new_wsi->a.vhost->ss_handle->info.opaque_user_data_offset);
276 new_wsi->a.vhost->ss_handle->info.flags |= LWSSSINFLAGS_SERVER;
279 &new_wsi->a.vhost->ss_handle->info,
293 h->info.flags |= LWSSSINFLAGS_ACCEPTED;
484 lws_adopt_desc_t info;
486 memset(&info, 0, sizeof(info));
488 info.vh = vh;
489 info.type = type;
490 info.fd = fd;
491 info.vh_prot_name = vh_prot_name;
492 info.parent = parent;
494 return lws_adopt_descriptor_vhost_via_info(&info);
498 lws_adopt_descriptor_vhost_via_info(const lws_adopt_desc_t *info)
506 if (info->type & LWS_ADOPT_SOCKET) {
507 peer = lws_get_or_create_peer(info->vh, info->fd.sockfd);
509 if (peer && info->vh->context->ip_limit_wsi &&
510 peer->count_wsi >= info->vh->context->ip_limit_wsi) {
512 info->vh->context->ip_limit_wsi);
513 if (info->vh->context->pl_notify_cb)
514 info->vh->context->pl_notify_cb(
515 info->vh->context,
516 info->fd.sockfd,
518 compatible_close(info->fd.sockfd);
524 lws_context_lock(info->vh->context, __func__);
526 new_wsi = __lws_adopt_descriptor_vhost1(info->vh, info->type,
527 info->vh_prot_name, info->parent,
528 info->opaque, info->fi_wsi_name);
530 if (info->type & LWS_ADOPT_SOCKET)
531 compatible_close(info->fd.sockfd);
535 if (info->type & LWS_ADOPT_SOCKET &&
536 getpeername(info->fd.sockfd, (struct sockaddr *)&new_wsi->sa46_peer,
542 lws_peer_add_wsi(info->vh->context, peer, new_wsi);
545 new_wsi = lws_adopt_descriptor_vhost2(new_wsi, info->type, info->fd);
548 lws_context_unlock(info->vh->context);