Main Page | Namespace List | Alphabetical List | Class List | File List | Class Members | File Members

RadiusServer Class Reference

#include <RadiusServer.h>

List of all members.

Public Member Functions

 RadiusServer (char *name="127.0.0.1", char *secret="", int authport=1812, int acctport=1813, int retry=3, int wait=1)
 ~RadiusServer ()
RadiusServeroperator= (const RadiusServer &)
int getRetry ()
void setRetry (int)
void setWait (int)
int getWait (void)
void setSharedSecret (char *)
string getSharedSecret (void)
int getAuthPort ()
void setAuthPort (short int)
int getAcctPort ()
void setAcctPort (short int)
string getName ()
void setName (char *)

Private Attributes

short int authport
short int acctport
string name
int retry
string sharedsecret
int wait

Friends

ostream & operator<< (ostream &os, RadiusServer &server)


Detailed Description

This class represents a radius server.


Constructor & Destructor Documentation

RadiusServer::RadiusServer char *  name = "127.0.0.1",
char *  secret = "",
int  authport = 1812,
int  acctport = 1813,
int  retry = 3,
int  wait = 1
 

The constructer of the class.

Parameters:
char * name : Represents the name or the ip address. The default is 127.0.0.1.
char * secret : The sharedsecret in plaintext.
int authport : The UDP port for authentication, the default is 1812.
int acctport : The UDP port for accounting, the default is 1813.
int retry : How many times the client should try to send a packet if he doesn't get an answer.
int wait : The time (in seconds) to wait on a response of the radius server.

RadiusServer::~RadiusServer  ) 
 

The destructur of the class. It does nothing.


Member Function Documentation

int RadiusServer::getAcctPort  ) 
 

The getter method for the acctport.

Returns:
A integer of the acctport.

int RadiusServer::getAuthPort  ) 
 

The getter method for the authport.

Returns:
A integer of the authport.

string RadiusServer::getName  ) 
 

The getter method for the server name.

Returns:
A string with the server name.

int RadiusServer::getRetry  ) 
 

The getter method for the retry.

Returns:
A integer of the retries.

string RadiusServer::getSharedSecret void   ) 
 

The getter method for the sharedsecret

Returns:
A string with the plaintext shared secret.

int RadiusServer::getWait void   ) 
 

The getter method for the private member wait*

Returns:
A interger of the time to wait for a resopnse.

RadiusServer & RadiusServer::operator= const RadiusServer s  ) 
 

The allocation operator.

Parameters:
const RadiusServer &s : A reference to a RadiusServer.

void RadiusServer::setAcctPort short int  port  ) 
 

The setter method for the acctport. There is no correctness checking.

Parameters:
port The number of the UDP port.

void RadiusServer::setAuthPort short int  port  ) 
 

The setter method for the authport. There is no correctness checking.

Parameters:
port The number of the UDP port.

void RadiusServer::setName char *  name  ) 
 

The setter method for the server name. There is no correctness checking. The name could be a name or an ip address.

Parameters:
name : The name or ip address of the radius server.

void RadiusServer::setRetry int  retry  ) 
 

The setter method for the retries. Is the value less or equal 0 it ist set to 1.

Parameters:
retry The number of retries the client should try to send a radius packet to the server, if the doesn't get an answer.

void RadiusServer::setSharedSecret char *  secret  ) 
 

The setter method for the sharedsecret

Parameters:
secret The sharedsecret in plaintext.

void RadiusServer::setWait int  w  ) 
 

The setter method for the private member wait

Parameters:
w The seconds to wait for response of the server. If w is less or equal 0 it is set to 1.


Friends And Related Function Documentation

ostream& operator<< ostream &  os,
RadiusServer server
[friend]
 


Member Data Documentation

short int RadiusServer::acctport [private]
 

The UDP port for accounting packets.

short int RadiusServer::authport [private]
 

The UDP port for authentication packets.

string RadiusServer::name [private]
 

The name or the ip address of the server.

int RadiusServer::retry [private]
 

The number of retries how many times a radius ticket is send to the server, if it doesn#t answer.

string RadiusServer::sharedsecret [private]
 

The sharedsecret, the maximum space is 16 chars.

int RadiusServer::wait [private]
 

The time to wait for a response of the server.


The documentation for this class was generated from the following files:
Generated on Sun Nov 27 20:19:13 2005 for RadiusClass by  doxygen 1.4.2