Beispiel #1
0
// 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
}
Beispiel #2
0
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);
}
Beispiel #3
0
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);
}
Beispiel #4
0
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);
}
Beispiel #5
0
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);
}