Public Types | Public Member Functions | Static Public Member Functions | Friends

IpAllow Class Reference

Singleton class for access controls. More...

#include <IPAllow.h>

Collaboration diagram for IpAllow:
Collaboration graph
[legend]

Public Types

typedef IpAllow self
 Self reference type.
typedef
ConfigProcessor::scoped_config
< IpAllow, IpAllow
scoped_config

Public Member Functions

 IpAllow (const char *config_var, const char *name, const char *action_val)
 ~IpAllow ()
void Print ()
AclRecordmatch (IpEndpoint const *ip) const
AclRecordmatch (sockaddr const *ip) const

Static Public Member Functions

static void startup ()
static void reconfigure ()
static IpAllowacquire ()
static void release (IpAllow *params)
static const AclRecordAllMethodAcl ()

Friends

struct IpAllowUpdate
int main (int, char **)

Detailed Description

Singleton class for access controls.

Definition at line 96 of file IPAllow.h.


Member Typedef Documentation

typedef ConfigProcessor::scoped_config<IpAllow, IpAllow> IpAllow::scoped_config

Definition at line 121 of file IPAllow.h.

Self reference type.

Definition at line 102 of file IPAllow.h.


Constructor & Destructor Documentation

IpAllow::IpAllow ( const char *  config_var,
const char *  name,
const char *  action_val 
)

Definition at line 98 of file IPAllow.cc.

References ink_release_assert, ink_strlcpy(), and RecConfigReadConfigPath().

IpAllow::~IpAllow (  ) 

Definition at line 113 of file IPAllow.cc.


Member Function Documentation

IpAllow * IpAllow::acquire (  )  [static]
Returns:
The global instance.

Definition at line 82 of file IPAllow.cc.

static const AclRecord* IpAllow::AllMethodAcl (  )  [inline, static]
Returns:
A mask that permits all methods.

Definition at line 117 of file IPAllow.h.

Referenced by HttpSessionAccept::accept().

AclRecord * IpAllow::match ( IpEndpoint const *  ip  )  const [inline]

Definition at line 137 of file IPAllow.h.

References IpEndpoint::sa.

AclRecord * IpAllow::match ( sockaddr const *  ip  )  const [inline]

Definition at line 142 of file IPAllow.h.

References IpMap::contains().

void IpAllow::Print (  ) 
void IpAllow::reconfigure (  )  [static]

Definition at line 69 of file IPAllow.cc.

References Note.

Referenced by startup().

void IpAllow::release ( IpAllow params  )  [static]

Definition at line 88 of file IPAllow.cc.

void IpAllow::startup (  )  [static]

Definition at line 57 of file IPAllow.cc.

References ink_assert, ipAllowUpdate, and reconfigure().

Referenced by main().


Friends And Related Function Documentation

friend struct IpAllowUpdate [friend]

Definition at line 99 of file IPAllow.h.

int main ( int  ,
char **  argv 
) [friend]

Definition at line 34 of file test-tsconfig.cc.


The documentation for this class was generated from the following files: