00001
00002
00003
00004
00005
00006
00007
00008
#ifndef _RADIUSADDRESS_H__
00009
#define _RADIUSADDRESS_H__
00010
00011
#ifdef _MSC_VER
00012
#include "Radius.h"
00013
#else
00014
#include <netinet/in.h>
00015
#include <arpa/inet.h>
00016
#endif
00017
00023 class RadiusAddress
00024 {
00025
public:
00027
RadiusAddress();
00028
00030
00034
RadiusAddress(
const char *p_hostname, uint16_t p_port);
00035
00037 in_port_t
getPort()
const;
00039 in_addr_t
getIP()
const;
00040
00042
void set(in_addr_t p_hostname, uint16_t p_port);
00044
void set(
const char *p_hostname, uint16_t p_port);
00045
00047
void dump();
00048
00049
private:
00050 in_addr_t m_IP;
00051 in_port_t m_port;
00052 };
00053
00054
#endif // _RADIUSADDRESS_H__
00055