summaryrefslogtreecommitdiff
path: root/include/inspsocket.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-02 11:50:01 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-02 11:50:01 +0000
commit1d6b72a5ba80b7f56f20b67b92677ffba3994991 (patch)
treee95436fe6d69af332f46cb45170c01e60be92842 /include/inspsocket.h
parent5b0b077e2a9a051b93b7837da79351ede361bcd6 (diff)
(1) remove CleanAndResolve.
(2) remove feature of being able to bind hostnames in <bind> tags (it used CleanAndResolve) :p (3) Fix the stuff in SpanningTree that used CleanAndResolve to validate connecting ip addresses - it now builds an 'allowed ip cache' on rehash/startup instead git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4637 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/inspsocket.h')
-rw-r--r--include/inspsocket.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/include/inspsocket.h b/include/inspsocket.h
index 077f20a65..b644151dc 100644
--- a/include/inspsocket.h
+++ b/include/inspsocket.h
@@ -59,10 +59,6 @@ class InspSocket : public Extensible
int fd;
/**
- * The resolver for this socket
- */
-
- /**
* The hostname connected to
*/
char host[MAXBUF];
@@ -184,15 +180,15 @@ class InspSocket : public Extensible
/**
* This constructor is used to create a new
* socket, either listening for connections, or an outbound connection to another host.
- * Note that if you specify a hostname in the 'host' parameter, then there will be an extra
- * step involved (a nonblocking DNS lookup) which will cause your connection to be established
- * slower than if it was an IP. Therefore, use an IP address where it is available instead.
- * @param host The hostname to connect to, or bind to
+ * Note that if you specify a hostname in the 'ipaddr' parameter, this class will not
+ * connect. You must resolve your hostnames before passing them to InspSocket. To do so,
+ * you should use the nonblocking class 'Resolver'.
+ * @param ipaddr The IP to connect to, or bind to
* @param port The port number to connect to, or bind to
* @param listening true to listen on the given host:port pair, or false to connect to them
* @param maxtime Number of seconds to wait, if connecting, before the connection times out and an OnTimeout() event is generated
*/
- InspSocket(const std::string &host, int port, bool listening, unsigned long maxtime);
+ InspSocket(const std::string &ipaddr, int port, bool listening, unsigned long maxtime);
/**
* This method is called when an outbound