rasdaman complete source
Public Member Functions | List of all members
akg::SocketAddress Class Reference

#include <akgnet_inetaddr.hh>

Public Member Functions

 SocketAddress () throw ()
 Default constructor. More...
 
 SocketAddress (sockaddr_in &) throw ()
 Constructor taking a 'sockaddr_in'. More...
 
void init (sockaddr_in &) throw ()
 Initialization from a 'sockaddr_in'. More...
 
bool isValid () const throw ()
 Returns true if the object is initialized. More...
 
HostAddress getHostAddress () const throw ()
 Returns the HostAddress of this socket. More...
 
uint32_t getAddress () const throw ()
 Returns the IP Address. More...
 
int getPort () const throw ()
 

Detailed Description

This class represents the IP address of a OS socket and envelops the OS data structure 'sockaddr_in'

Constructor & Destructor Documentation

akg::SocketAddress::SocketAddress ( )
throw (
)

Default constructor.

akg::SocketAddress::SocketAddress ( sockaddr_in &  )
throw (
)

Constructor taking a 'sockaddr_in'.

Member Function Documentation

uint32_t akg::SocketAddress::getAddress ( ) const
throw (
)

Returns the IP Address.

HostAddress akg::SocketAddress::getHostAddress ( ) const
throw (
)

Returns the HostAddress of this socket.

int akg::SocketAddress::getPort ( ) const
throw (
)
void akg::SocketAddress::init ( sockaddr_in &  )
throw (
)

Initialization from a 'sockaddr_in'.

bool akg::SocketAddress::isValid ( ) const
throw (
)

Returns true if the object is initialized.


The documentation for this class was generated from the following file: