X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fsocket.h;h=5935500180637128f0ad06c17aa771e3badfd693;hb=eb910456e2f01255f277fe060fef6f7dd3018cf7;hp=a2b727499837245a5a6f72fb52dca25a469a719b;hpb=5ad936b13f317cb277bf03c19e9734d931b1bd00;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/socket.h b/include/socket.h index a2b727499..593550018 100644 --- a/include/socket.h +++ b/include/socket.h @@ -107,14 +107,14 @@ namespace irc * @param sa The structure to place the result in. Will be zeroed prior to conversion * @return true if the conversion was successful, false if not. */ - CoreExport int aptosa(const char* addr, int port, irc::sockets::sockaddrs* sa); + CoreExport bool aptosa(const char* addr, int port, irc::sockets::sockaddrs* sa); /** Convert a binary sockaddr to an address-port pair * @param sa The structure to convert * @param addr the IP address * @param port the port * @return true if the conversion was successful, false if unknown address family */ - CoreExport int satoap(const irc::sockets::sockaddrs* sa, std::string& addr, int &port); + CoreExport bool satoap(const irc::sockets::sockaddrs* sa, std::string& addr, int &port); } }