From b12e32b3bb00ac32e482d8b1fd5606e4f8b7e085 Mon Sep 17 00:00:00 2001 From: Sina Sepehri Date: Sat, 18 Dec 2021 12:43:06 +0330 Subject: [PATCH] added initializer for example --- Readme.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Readme.md b/Readme.md index 19f4df8..e965b19 100644 --- a/Readme.md +++ b/Readme.md @@ -16,6 +16,10 @@ int main() { int ret; std::string ip; + + // Initiate Socket Handler + InitNativeSocket(); + if ((ret = DNSResolve("kiritow.com", ip)) < 0) { printf("Failed to resolve ip address. (%d)\n", ret); @@ -72,6 +76,10 @@ void service_main(sock& s) int main() { + + // Initiate Socket Handler + InitNativeSocket(); + serversock t; if (t.bind(59123) < 0 || t.listen(10) < 0) {