ESA JPIP server  0.1
net::InetAddress Class Reference

Class to identify and handle an Internet address. More...

#include <address.h>

Inheritance diagram for net::InetAddress:
Collaboration diagram for net::InetAddress:

Public Member Functions

 InetAddress ()
 Initializes the address to zero. More...
 
 InetAddress (const InetAddress &address)
 Copy constructor. More...
 
 InetAddress (int port)
 Initializes the address with given port. More...
 
 InetAddress (const char *path, int port)
 Initializes the address with the given path and port. More...
 
InetAddressoperator= (const InetAddress &address)
 Copy assignment. More...
 
virtual sockaddr * GetSockAddr () const
 Overloaded from the base class to use the internal address structure. More...
 
virtual int GetSize () const
 Overloaded from the base class to use the internal address structure. More...
 
string GetPath () const
 Returns the address path. More...
 
int GetPort () const
 Returns the port number. More...
 
- Public Member Functions inherited from net::Address
 Address ()
 Empty constructor. More...
 
virtual ~Address ()
 Empty destructor. More...
 

Private Attributes

sockaddr_in sock_addr
 Internal address structure. More...
 

Detailed Description

Class to identify and handle an Internet address.

The used internal address structure is sockaddr_in.

See Also
Address

Constructor & Destructor Documentation

net::InetAddress::InetAddress ( )
inline

Initializes the address to zero.

net::InetAddress::InetAddress ( const InetAddress address)
inline

Copy constructor.

net::InetAddress::InetAddress ( int  port)
inline

Initializes the address with given port.

The used path is INADDR_ANY.

Parameters
portPort number.
net::InetAddress::InetAddress ( const char *  path,
int  port 
)
inline

Initializes the address with the given path and port.

Parameters
pathAddress path.
portPort number.

Member Function Documentation

string net::InetAddress::GetPath ( ) const
inline

Returns the address path.

Here is the caller graph for this function:

int net::InetAddress::GetPort ( ) const
inline

Returns the port number.

Here is the caller graph for this function:

virtual int net::InetAddress::GetSize ( ) const
inlinevirtual

Overloaded from the base class to use the internal address structure.

Implements net::Address.

virtual sockaddr* net::InetAddress::GetSockAddr ( ) const
inlinevirtual

Overloaded from the base class to use the internal address structure.

Implements net::Address.

InetAddress& net::InetAddress::operator= ( const InetAddress address)
inline

Copy assignment.

Member Data Documentation

sockaddr_in net::InetAddress::sock_addr
private

Internal address structure.


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