ns3::InetSocketAddress Class Reference
[Address]
an Inet address class
More...
#include <inet-socket-address.h>
List of all members.
Detailed Description
an Inet address class
This class is similar to inet_sockaddr in the BSD socket API. i.e., this class holds an Ipv4Address and a port number to form an ipv4 transport endpoint.
Constructor & Destructor Documentation
ns3::InetSocketAddress::InetSocketAddress |
( |
Ipv4Address |
ipv4, |
|
|
uint16_t |
port | |
|
) |
| | |
- Parameters:
-
| ipv4 | the ipv4 address |
| port | the port number |
ns3::InetSocketAddress::InetSocketAddress |
( |
Ipv4Address |
ipv4 |
) |
|
- Parameters:
-
The port number is set to zero by default.
ns3::InetSocketAddress::InetSocketAddress |
( |
uint16_t |
port |
) |
|
- Parameters:
-
The ipv4 address is set to the "Any" address by default.
ns3::InetSocketAddress::InetSocketAddress |
( |
const char * |
ipv4, |
|
|
uint16_t |
port | |
|
) |
| | |
- Parameters:
-
| ipv4 | string which represents an ipv4 address |
| port | the port number |
ns3::InetSocketAddress::InetSocketAddress |
( |
const char * |
ipv4 |
) |
|
- Parameters:
-
| ipv4 | string which represents an ipv4 address |
The port number is set to zero.
Member Function Documentation
Ipv4Address ns3::InetSocketAddress::GetIpv4 |
( |
void |
|
) |
const |
uint16_t ns3::InetSocketAddress::GetPort |
( |
void |
|
) |
const |
static bool ns3::InetSocketAddress::IsMatchingType |
( |
const Address & |
address |
) |
[static] |
- Returns:
- true if the address matches, false otherwise.
ns3::InetSocketAddress::operator Address |
( |
|
) |
const |
void ns3::InetSocketAddress::SetIpv4 |
( |
Ipv4Address |
address |
) |
|
- Parameters:
-
| address | the new ipv4 address |
void ns3::InetSocketAddress::SetPort |
( |
uint16_t |
port |
) |
|
- Parameters:
-
| port | the new port number. |
The documentation for this class was generated from the following file:
- src/node/inet-socket-address.h