Lines Matching defs:context
175 lws_hex_random(struct lws_context *context, char *dest, size_t len)
180 if (lws_get_random(context, r, n) != n)
240 lws_pthread_self_to_tsi(struct lws_context *context)
244 struct lws_context_per_thread *pt = &context->pt[0];
248 if (context->count_threads == 1)
251 for (n = 0; n < context->count_threads; n++) {
264 lws_context_user(struct lws_context *context)
266 return context->user_space;
298 lws_canonical_hostname(struct lws_context *context)
300 return (const char *)context->canonical_hostname;
305 lws_get_count_threads(struct lws_context *context)
307 return context->count_threads;
734 lws_finalize_startup(struct lws_context *context)
736 if (lws_check_opt(context->options, LWS_SERVER_OPTION_EXPLICIT_VHOSTS))
737 if (lws_plat_drop_app_privileges(context, 1))
745 lws_get_effective_uid_gid(struct lws_context *context, uid_t *uid, gid_t *gid)
747 *uid = context->uid;
748 *gid = context->gid;