From 203f8e5320b69c8d8a63d239d0b714059f23bf71 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 18 Jun 2019 11:40:39 +0200 Subject: [PATCH] AK: Add IPv4Address(NetworkOrdered) constructor. --- AK/IPv4Address.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/AK/IPv4Address.h b/AK/IPv4Address.h index f39aa2cb0e..56dc3d57ce 100644 --- a/AK/IPv4Address.h +++ b/AK/IPv4Address.h @@ -1,6 +1,7 @@ #pragma once #include +#include namespace AK { @@ -22,6 +23,10 @@ public: m_data[2] = c; m_data[3] = d; } + IPv4Address(NetworkOrdered address) + : m_data_as_dword(address) + { + } byte operator[](int i) const { @@ -55,4 +60,3 @@ struct Traits { } using AK::IPv4Address; -