summaryrefslogtreecommitdiff
path: root/include/socketengine.h
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2018-01-20 12:08:09 +0000
committerPeter Powell <petpow@saberuk.com>2018-01-20 12:08:09 +0000
commitb18e6b5556f2deedf6ebf154477c4d69dcf02638 (patch)
tree6638d7aa7b936892fecffac999870778ee54ba2e /include/socketengine.h
parentbe12938393585ba0994a1aeaafcb6fd879580506 (diff)
Pass an irc::socket::sockaddrs to SocketEngine::Connect().
Diffstat (limited to 'include/socketengine.h')
-rw-r--r--include/socketengine.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/socketengine.h b/include/socketengine.h
index 0187a043e..8549da612 100644
--- a/include/socketengine.h
+++ b/include/socketengine.h
@@ -493,11 +493,10 @@ public:
/** Abstraction for BSD sockets connect(2).
* This function should emulate its namesake system call exactly.
* @param fd This version of the call takes an EventHandler instead of a bare file descriptor.
- * @param serv_addr The server IP address and port.
- * @param addrlen The size of the sockaddr parameter.
+ * @param address The server IP address and port.
* @return This method should return exactly the same values as the system call it emulates.
*/
- static int Connect(EventHandler* fd, const sockaddr *serv_addr, socklen_t addrlen);
+ static int Connect(EventHandler* fd, const irc::sockets::sockaddrs& address);
/** Make a file descriptor blocking.
* @param fd a file descriptor to set to blocking mode