Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

CL_IPAddress Class Reference

clanNetwork="Sockets". More...

#include <ip_address.h>

List of all members.

Public Methods

 CL_IPAddress ()
 Construction:.

 CL_IPAddress (unsigned int address, unsigned short port)
 CL_IPAddress (const std::string &hostname, unsigned short port)
 CL_IPAddress (const CL_IPAddress &copy)
unsigned int get_address () const
 Attributes:.

unsigned short get_port () const
unsigned char& operator[] (int i)
const unsigned char& operator[] (int i) const
void set_address (unsigned int new_ip)
 Operations:.

void set_address (const std::string &hostname)
void set_port (unsigned short new_port)
std::string dns_lookup () const

Private Attributes

unsigned int ip
 Implementation:.

unsigned short port


Detailed Description

clanNetwork="Sockets".

Definition at line 9 of file ip_address.h.


Constructor & Destructor Documentation

CL_IPAddress::CL_IPAddress ( )
 

Construction:.

CL_IPAddress::CL_IPAddress ( unsigned int address,
unsigned short port )
 

CL_IPAddress::CL_IPAddress ( const std::string & hostname,
unsigned short port )
 

CL_IPAddress::CL_IPAddress ( const CL_IPAddress & copy )
 


Member Function Documentation

std::string CL_IPAddress::dns_lookup ( ) const
 

unsigned int CL_IPAddress::get_address ( ) const [inline]
 

Attributes:.

Definition at line 28 of file ip_address.h.

unsigned short CL_IPAddress::get_port ( ) const [inline]
 

Definition at line 31 of file ip_address.h.

const unsigned char & CL_IPAddress::operator[] ( int i ) const [inline]
 

Definition at line 37 of file ip_address.h.

unsigned char & CL_IPAddress::operator[] ( int i ) [inline]
 

Definition at line 34 of file ip_address.h.

void CL_IPAddress::set_address ( const std::string & hostname )
 

void CL_IPAddress::set_address ( unsigned int new_ip ) [inline]
 

Operations:.

Definition at line 42 of file ip_address.h.

void CL_IPAddress::set_port ( unsigned short new_port ) [inline]
 

Definition at line 48 of file ip_address.h.


Member Data Documentation

unsigned int CL_IPAddress::ip [private]
 

Implementation:.

Definition at line 56 of file ip_address.h.

unsigned short CL_IPAddress::port [private]
 

Definition at line 59 of file ip_address.h.


The documentation for this class was generated from the following file:
Generated at Wed Apr 4 19:57:05 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001