diff options
Diffstat (limited to 'src/IpAddress.cpp')
-rw-r--r-- | src/IpAddress.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/IpAddress.cpp b/src/IpAddress.cpp index 75e4348..76f1c63 100644 --- a/src/IpAddress.cpp +++ b/src/IpAddress.cpp @@ -194,6 +194,14 @@ namespace sibs address.sin_addr.s_addr = INADDR_ANY; memset(address.sin_zero, 0, sizeof(address.sin_zero)); } + + Ipv4::Ipv4(u16 family, u32 addr, u16 port) + { + address.sin_family = family; + address.sin_addr.s_addr = addr; + address.sin_port = port; + memset(address.sin_zero, 0, sizeof(address.sin_zero)); + } Ipv4::Ipv4(const Ipv4 &other) { |