Provides an Internet Protocol (IP) address + port. This class extends the
NetworkIpAddrInterface
with a port.
公共成员函数
|
MAXON_METHOD
void
|
SetPort
(
Int32
port)
|
MAXON_METHOD
Int32
|
GetPort
() const
|
MAXON_METHOD
NetworkIpAddr
|
GetAddress
() const
|
String
|
ToString
(const
FormatStatement
*formatStatement=nullptr) const
|
MAXON_METHOD
Result
< void >
|
GetIPv4AndPort
(sockaddr_in *sockaddr) const
|
MAXON_METHOD
Result
< void >
|
GetIPv6AndPort
(sockaddr_in6 *sockaddr) const
|
MAXON_METHOD
Result
< void >
|
GetIPAndPort
(sockaddr_storage *sockaddr,
Int32
&len) const
|
MAXON_METHOD
Result
< void >
|
SetIPv4AndPort
(const sockaddr_in *in)
|
MAXON_METHOD
Result
< void >
|
SetIPv6AndPort
(const sockaddr_in6 *in)
|
MAXON_METHOD
Result
< void >
|
SetIPAndPort
(const sockaddr_storage *in)
|
MAXON_METHOD
Bool
|
IsEqual
(const
NetworkIpAddrPortInterface
*adr) const
|
MAXON_METHOD
Bool
|
IsEqual
(const
NetworkIpAddrInterface
*adr) const
|
MAXON_METHOD
NetworkSockAddrIn
|
GetNetworkSockAddrIn
() const
|
MAXON_METHOD
void
|
SetNetworkSockaddrIn
(const
NetworkSockAddrIn
&sa,
PROTOCOL
protocol)
|
MAXON_METHOD
void
|
重置
()
|
MAXON_METHOD
void
|
Flush
()
|
MAXON_METHOD
void
|
SetIPv4
(
UInt32
ip,
Bool
isHostByteOrder)
|
MAXON_METHOD
void
|
SetIPv4
(
UChar
a,
UChar
b,
UChar
c,
UChar
d)
|
MAXON_METHOD
void
|
SetIPv6
(
UInt16
x1,
UInt16
x2,
UInt16
x3,
UInt16
x4,
UInt16
x5,
UInt16
x6,
UInt16
x7,
UInt16
x8)
|
MAXON_METHOD
void
|
SetIPv4
(const in_addr &in)
|
MAXON_METHOD
void
|
SetIPv6
(const in6_addr &in)
|
MAXON_METHOD
Result
< void >
|
SetIPv4
(const sockaddr_in *in)
|
MAXON_METHOD
Result
< void >
|
SetIPv6
(const sockaddr_in6 *in)
|
MAXON_METHOD
void
|
SetIPv4
(
WILDCARD_IPV4_ADDRESS_TYPE
)
|
MAXON_METHOD
void
|
SetIPv6
(
WILDCARD_IPV6_ADDRESS_TYPE
)
|
MAXON_METHOD
Result
< void >
|
GetIPv4
(
UChar
&a,
UChar
&b,
UChar
&c,
UChar
&d) const
|
MAXON_METHOD
Result
< void >
|
GetIPv6
(
UInt16
&x1,
UInt16
&x2,
UInt16
&x3,
UInt16
&x4,
UInt16
&x5,
UInt16
&x6,
UInt16
&x7,
UInt16
&x8) const
|
MAXON_METHOD
Result
< void >
|
GetIPv4
(sockaddr_in *sockaddr) const
|
MAXON_METHOD
Result
< void >
|
GetIPv6
(sockaddr_in6 *sockaddr) const
|
MAXON_METHOD
PROTOCOL
|
GetProtocol
() const
|
MAXON_METHOD
int
|
GetNativeProtocol
() const
|
MAXON_METHOD
void
|
SetProtocol
(
PROTOCOL
protocol)
|
MAXON_METHOD
Bool
|
IsPrivateAddress
() const
|
MAXON_METHOD
Bool
|
IsMulticastAddress
() const
|
MAXON_METHOD
Bool
|
IsWildcardAddress
() const
|
MAXON_METHOD
Bool
|
IsUnspecified
() const
|
MAXON_METHOD
Bool
|
IsEmpty
() const
|
MAXON_FUNCTION
Bool
|
IsPopulated
() const
|
MAXON_METHOD
Bool
|
IsValid
() const
|
MAXON_METHOD
String
|
GetString
(
Int32
port=0) const
|
String
|
ToString
(const
FormatStatement
*formatStatement=nullptr) const
|
MAXON_METHOD
Bool
|
IsEqual
(const
NetworkIpAddrInterface
*adr) const
|
MAXON_METHOD
Bool
|
IsInSameNetwork
(const
NetworkIpAddr
&otherAddress, const
NetworkIpAddr
&subnetMask) const
|
MAXON_METHOD
HashInt
|
GetHashCode
() const
|