// char read static mrb_value ap_mrb_get_conn_remote_ip(mrb_state *mrb, mrb_value str) { request_rec *r = ap_mrb_get_request(); #ifdef __APACHE24__ return ap_mrb_str_to_value(mrb, r->pool, r->connection->client_ip); #else return ap_mrb_str_to_value(mrb, r->pool, r->connection->remote_ip); #endif }
static mrb_value ap_mrb_get_server_defn_name(mrb_state *mrb, mrb_value str) { request_rec *r = ap_mrb_get_request(); return ap_mrb_str_to_value(mrb, r->pool, r->server->defn_name); }
static mrb_value ap_mrb_get_server_admin(mrb_state *mrb, mrb_value str) { request_rec *r = ap_mrb_get_request(); return ap_mrb_str_to_value(mrb, r->pool, r->server->server_admin); }
static mrb_value ap_mrb_get_conn_local_host(mrb_state *mrb, mrb_value str) { request_rec *r = ap_mrb_get_request(); return ap_mrb_str_to_value(mrb, r->pool, r->connection->local_host); }
static mrb_value ap_mrb_get_conn_remote_logname(mrb_state *mrb, mrb_value str) { request_rec *r = ap_mrb_get_request(); return ap_mrb_str_to_value(mrb, r->pool, r->connection->remote_logname); }