Main Page | Class List | File List | Class Members

ace-radius/RadiusAddress.h

00001 /* 00002 * This source file is part of the ace-radius library. This code was 00003 * written by Alex Agranov in 2004-2009, and is covered by the BSD open source 00004 * license. Refer to the accompanying documentation for details on usage and 00005 * license. 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

Generated on Tue Aug 11 18:35:06 2009 for ace-radius by doxygen 1.3.7-20040704