summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/inspircd.h4
-rw-r--r--include/socket.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index 60a29d5f4..ee02a32b5 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -589,13 +589,11 @@ class InspIRCd : public classbase
/** Binds a socket on an already open file descriptor
* @param sockfd A valid file descriptor of an open socket
- * @param client A sockaddr to use as temporary storage
- * @param server A sockaddr to use as temporary storage
* @param port The port number to bind to
* @param addr The address to bind to (IP only)
* @return True if the port was bound successfully
*/
- bool BindSocket(int sockfd, insp_sockaddr client, insp_sockaddr server, int port, char* addr);
+ bool BindSocket(int sockfd, int port, char* addr, bool dolisten = true);
/** Adds a server name to the list of servers we've seen
* @param The servername to add
diff --git a/include/socket.h b/include/socket.h
index 63546f887..4e7d89192 100644
--- a/include/socket.h
+++ b/include/socket.h
@@ -136,7 +136,7 @@ namespace irc
* or a negative value upon failure (negative values are invalid file
* descriptors)
*/
- int OpenTCPSocket(char* addr);
+ int OpenTCPSocket(char* addr, int socktype = SOCK_STREAM);
};
};