From b18e6b5556f2deedf6ebf154477c4d69dcf02638 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sat, 20 Jan 2018 12:08:09 +0000 Subject: Pass an irc::socket::sockaddrs to SocketEngine::Connect(). --- include/socketengine.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/socketengine.h') 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 -- cgit v1.3.1-10-gc9f91