Internet end point.
More...
#include <base/net/InetEndPoint.h>
Inherits Object.
Internet end point.
Internet end point (i.e. both internet address and port number).
- Version
- 1.0
- Examples
- testsuite/client.cpp, testsuite/echod.cpp, testsuite/ftp.cpp, testsuite/http.cpp, and testsuite/ping.cpp.
◆ InetEndPoint() [1/7]
InetEndPoint::InetEndPoint |
( |
| ) |
|
|
noexcept |
Initializes default end point.
◆ InetEndPoint() [2/7]
InetEndPoint::InetEndPoint |
( |
const InetAddress & |
address, |
|
|
unsigned short |
port |
|
) |
| |
|
noexcept |
Initializes the end point from the specified address and port.
- Parameters
-
address | The address. |
port | The port. |
◆ InetEndPoint() [3/7]
Initializes the end point from the specified address and service.
- Parameters
-
address | The address. |
service | The service. |
◆ InetEndPoint() [4/7]
Initializes the end point from the specified address and service.
- Parameters
-
address | The address. |
service | The service (e.g. 'http' or '80'). |
◆ InetEndPoint() [5/7]
InetEndPoint::InetEndPoint |
( |
const String & |
host, |
|
|
unsigned short |
port |
|
) |
| |
Initializes end point from string representations of host and service.
- Parameters
-
host | The host (e.g. '127.0.0.1' or 'www.google.com'). |
port | The port. |
◆ InetEndPoint() [6/7]
InetEndPoint::InetEndPoint |
( |
const String & |
host, |
|
|
const String & |
service |
|
) |
| |
Initializes end point from string representations of host and service.
- Parameters
-
host | The host (e.g. '127.0.0.1' or 'www.google.com'). |
service | The service (e.g. 'http' or '80'). |
◆ InetEndPoint() [7/7]
Initialize object from other object.
◆ getAddress()
◆ getEndPoint()
Returns the end point for the given string.
◆ getPort() [1/2]
unsigned short InetEndPoint::getPort |
( |
| ) |
const |
|
inlinenoexcept |
◆ getPort() [2/2]
static unsigned short InetEndPoint::getPort |
( |
const String & |
service | ) |
|
|
static |
◆ getService()
Returns the port converted to service.
◆ operator!=()
bool InetEndPoint::operator!= |
( |
const InetEndPoint & |
compare | ) |
const |
|
inlinenoexcept |
Returns true if the end point are non-equal.
◆ operator=()
◆ operator==()
bool InetEndPoint::operator== |
( |
const InetEndPoint & |
compare | ) |
const |
|
inlinenoexcept |
Returns true if the end point are equal.
◆ setAddress()
void InetEndPoint::setAddress |
( |
const InetAddress & |
value | ) |
|
|
noexcept |
◆ setPort()
void InetEndPoint::setPort |
( |
unsigned short |
value | ) |
|
|
noexcept |