Main Page | Class Hierarchy | Class List | File List | Class Members | Related Pages

net::AccessList Class Reference

Handles a list of allowed and denied IP addresses. More...

#include <AccessList.h>

List of all members.

Public Member Functions

 AccessList ()
 Constructor for AccessList.
int readFromFile (string aFile)
 Reads an IP access list from a file.
int checkHost (string &aHost)
 Authenticate a host.
void display ()
 Display the entire access list.
string getError ()
 get the resulting error/warnings after file parsing


Detailed Description

Handles a list of allowed and denied IP addresses.

Author:
Laurent Moutel


Member Function Documentation

int net::AccessList::checkHost string &  aHost  ) 
 

Authenticate a host.

Parameters:
aHost a string containing the IP address of the host to check
Returns:
true if host is OK, false if it's denied.

int net::AccessList::readFromFile string  aFile  ) 
 

Reads an IP access list from a file.

Parameters:
aFile a string containing the path of the file to open
Returns:
-1 on error, 0 on success. If error or warnings occured, use the getError() method to fetch them


The documentation for this class was generated from the following file:
Generated on Fri May 19 23:12:37 2006 for common by  doxygen 1.4.4