add extra conveniance constructors and use them
This commit is contained in:
1 parent
6770e9008d
commit
34b05e42f2
3 files changed
+13
-3
No files matched your search
@@ -11,6 +11,14 @@ InetAddress::InetAddress (Ipv4Address ipv4)
|
||||
: m_ipv4 (ipv4),
|
||||
m_port (0)
|
||||
{}
|
||||
InetAddress::InetAddress (const char *ipv4, uint16_t port)
|
||||
: m_ipv4 (Ipv4Address (ipv4)),
|
||||
m_port (port)
|
||||
{}
|
||||
InetAddress::InetAddress (const char * ipv4)
|
||||
: m_ipv4 (Ipv4Address (ipv4)),
|
||||
m_port (0)
|
||||
{}
|
||||
InetAddress::InetAddress (uint16_t port)
|
||||
: m_ipv4 (Ipv4Address::GetAny ()),
|
||||
m_port (port)
|
||||
|
||||
@@ -12,7 +12,9 @@ class InetAddress
|
||||
public:
|
||||
InetAddress (Ipv4Address ipv4, uint16_t port);
|
||||
InetAddress (Ipv4Address ipv4);
|
||||
InetAddress (uint16_t post);
|
||||
InetAddress (uint16_t port);
|
||||
InetAddress (const char *ipv4, uint16_t port);
|
||||
InetAddress (const char *ipv4);
|
||||
uint16_t GetPort (void) const;
|
||||
Ipv4Address GetIpv4 (void) const;
|
||||
|
||||
|
||||
Reference in new issue
Block a user