@@ -263,11 +263,11 @@ if (_socket != INVALID_SOCKET) @throw [OFAlreadyConnectedException exceptionWithSocket: self]; if (_SOCKS5Host != nil) { /* Connect to the SOCKS5 proxy instead */ - host = _SOCKS5Host; + host = (OFString *)_SOCKS5Host; port = _SOCKS5Port; } results = of_resolve_host(host, port, SOCK_STREAM); @@ -605,11 +605,12 @@ @throw [OFNotOpenException exceptionWithObject: self]; if (_address == NULL) @throw [OFInvalidArgumentException exception]; - of_address_to_string_and_port(_address, _addressLength, &ret, NULL); + of_address_to_string_and_port((struct sockaddr *)_address, + _addressLength, &ret, NULL); return ret; } - (bool)isListening