From d7336f351d9740fc4bfc1289c2b090a0f272d201 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 10 Aug 2006 00:36:07 +0000 Subject: Move the socket functions like insp_ntoa into their own namespace. They arent really sensible to put into a class, but namespacing them out discourages developers from directly using them without explicitly saing 'using irc::sockets::BindPorts' or whatever first. Some functions such as insp_ntoa are already 'exposed' by headers that use them so 'using irc::sockets::inet_ntoa' isnt required. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4828 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/inspircd.cpp') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index a4b6181ab..aaf20062f 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -65,6 +65,12 @@ #include "typedefs.h" #include "command_parse.h" +using irc::sockets::BindPorts; +using irc::sockets::NonBlocking; +using irc::sockets::insp_ntoa; +using irc::sockets::insp_inaddr; +using irc::sockets::insp_sockaddr; + InspIRCd* ServerInstance = NULL; extern ModuleList modules; -- cgit v1.3.1-10-gc9f91