ESA JPIP server
0.1
|
Class to identify and handle an Internet address. More...
#include <address.h>
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... | |
InetAddress & | operator= (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... | |
![]() | |
Address () | |
Empty constructor. More... | |
virtual | ~Address () |
Empty destructor. More... | |
Private Attributes | |
sockaddr_in | sock_addr |
Internal address structure. More... | |
Class to identify and handle an Internet address.
The used internal address structure is sockaddr_in
.
|
inline |
Initializes the address to zero.
|
inline |
Copy constructor.
|
inline |
Initializes the address with given port.
The used path is INADDR_ANY
.
port | Port number. |
|
inline |
Initializes the address with the given path and port.
path | Address path. |
port | Port number. |
|
inline |
Returns the address path.
|
inline |
Returns the port number.
|
inlinevirtual |
Overloaded from the base class to use the internal address structure.
Implements net::Address.
|
inlinevirtual |
Overloaded from the base class to use the internal address structure.
Implements net::Address.
|
inline |
Copy assignment.
|
private |
Internal address structure.