Branch: Tag:

2006-04-18

2006-04-18 17:22:15 by Henrik Grubbström (Grubba) <grubba@grubba.org>

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)   {