X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=include%2Fsocket.h;h=e1050201ae20b13b4b36d48f4ee17c00fa317d53;hb=ffc039651676e0f679726b15fac4bf133e7e5bc2;hp=961fbd98ece7d67d45425da7726ed8e80fbc4a97;hpb=74f401f1997b89783217cd636f396e35f5c2a9d0;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/socket.h b/include/socket.h index 961fbd98e..e1050201a 100644 --- a/include/socket.h +++ b/include/socket.h @@ -135,7 +135,7 @@ namespace irc * or a negative value upon failure (negative values are invalid file * descriptors) */ - CoreExport int OpenTCPSocket(char* addr, int socktype = SOCK_STREAM); + CoreExport int OpenTCPSocket(const char* addr, int socktype = SOCK_STREAM); } } @@ -171,7 +171,7 @@ class CoreExport ListenSocketBase : public EventHandler public: /** Create a new listening socket */ - ListenSocketBase(InspIRCd* Instance, int port, char* addr); + ListenSocketBase(InspIRCd* Instance, int port, const std::string &addr); /** Handle an I/O event */ void HandleEvent(EventType et, int errornum = 0); @@ -219,7 +219,7 @@ class CoreExport ClientListenSocket : public ListenSocketBase { virtual void OnAcceptReady(const std::string &ipconnectedto, int fd, const std::string &incomingip); public: - ClientListenSocket(InspIRCd* Instance, int port, char* addr) : ListenSocketBase(Instance, port, addr) { } + ClientListenSocket(InspIRCd* Instance, int port, const std::string &addr) : ListenSocketBase(Instance, port, addr) { } }; #endif