Index: src/OFHTTPRequest.m ================================================================== --- src/OFHTTPRequest.m +++ src/OFHTTPRequest.m @@ -216,11 +216,11 @@ const char *type = NULL; char *buffer; size_t bytesReceived; [sock connectToHost: [URL host] - onPort: [URL port]]; + port: [URL port]]; /* * Work around a bug with packet bisection in lighttpd when * using HTTPS. */ Index: src/OFTCPSocket.h ================================================================== --- src/OFTCPSocket.h +++ src/OFTCPSocket.h @@ -46,11 +46,11 @@ * * \param host The host to connect to * \param port The port on the host to connect to */ - (void)connectToHost: (OFString*)host - onPort: (uint16_t)port; + port: (uint16_t)port; /** * Bind the socket on the specified port and host. * * \param port The port to bind to. If the port is 0, an unused port will be Index: src/OFTCPSocket.m ================================================================== --- src/OFTCPSocket.m +++ src/OFTCPSocket.m @@ -77,11 +77,11 @@ return self; } - (void)connectToHost: (OFString*)host - onPort: (uint16_t)port + port: (uint16_t)port { if (sock != INVALID_SOCKET) @throw [OFAlreadyConnectedException newWithClass: isa socket: self]; Index: tests/OFTCPSocketTests.m ================================================================== --- tests/OFTCPSocketTests.m +++ tests/OFTCPSocketTests.m @@ -43,13 +43,13 @@ (port = [server bindToPort: 0 onHost: @"127.0.0.1"])) TEST(@"-[listen]", R([server listen])) - TEST(@"-[connectToHost:onPort:]", + TEST(@"-[connectToHost:port:]", R([client connectToHost: @"127.0.0.1" - onPort: port])) + port: port])) TEST(@"-[accept]", (accepted = [server accept])) TEST(@"-[remoteAddress]", [[accepted remoteAddress] isEqual: @"127.0.0.1"])