Roxen.git/
server/
etc/
modules/
Roxen.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2006-04-18
2006-04-18 17:22:15 by Henrik Grubbström (Grubba) <grubba@grubba.org>
3916aef15a0df72aee87d08caf5868b874b22c21 (
11
lines) (+
10
/-
1
)
[
Show
|
Annotate
]
Branch:
5.2
Added get_remoteaddr().
Rev: server/etc/modules/Roxen.pmod:1.209
1:
// This is a roxen pike module. Copyright © 1999 - 2004, Roxen IS. //
-
// $Id: Roxen.pmod,v 1.
208
2006/
02
/
27
18:
10
:
24
jonasw
Exp $
+
// $Id: Roxen.pmod,v 1.
209
2006/
04
/
18
17
:
22
:
15
grubba
Exp $
#include <roxen.h> #include <config.h>
145:
return cookie_callbacks[cookie] = cb; }
+
//! Return id->remoteaddr.
+
//!
+
//! Useful to use with @[RequestID()->register_vary_callback()].
+
string get_remoteaddr(string ignored, RequestID id)
+
{
+
return id->remoteaddr;
+
}
+
// These five functions are questionable, but rather widely used. string msectos(int t) {