@@ -84,18 +84,18 @@ * @brief Sets the global SOCKS5 proxy host to use when creating a new socket * * @param SOCKS5Host The host to use as a SOCKS5 proxy when creating a new * socket */ -+ (void)setSOCKS5Host: (nullable OFString*)SOCKS5Host; ++ (void)setSOCKS5Host: (nullable OFString *)SOCKS5Host; /*! * @brief Returns the host to use as a SOCKS5 proxy when creating a new socket * * @return The host to use as a SOCKS5 proxy when creating a new socket */ -+ (nullable OFString*)SOCKS5Host; ++ (nullable OFString *)SOCKS5Host; /*! * @brief Sets the global SOCKS5 proxy port to use when creating a new socket * * @param SOCKS5Port The port to use as a SOCKS5 proxy when creating a new socket @@ -113,11 +113,11 @@ * @brief Connect the OFTCPSocket to the specified destination. * * @param host The host to connect to * @param port The port on the host to connect to */ -- (void)connectToHost: (OFString*)host +- (void)connectToHost: (OFString *)host port: (uint16_t)port; #ifdef OF_HAVE_THREADS /*! * @brief Asynchronously connect the OFTCPSocket to the specified destination. @@ -127,11 +127,11 @@ * @param target The target on which to call the selector once the connection * has been established * @param selector The selector to call on the target. The signature must be * `void (OFTCPSocket *socket, OFException *exception)`. */ -- (void)asyncConnectToHost: (OFString*)host +- (void)asyncConnectToHost: (OFString *)host port: (uint16_t)port target: (id)target selector: (SEL)selector; # ifdef OF_HAVE_BLOCKS @@ -140,11 +140,11 @@ * * @param host The host to connect to * @param port The port on the host to connect to * @param block The block to execute once the connection has been established */ -- (void)asyncConnectToHost: (OFString*)host +- (void)asyncConnectToHost: (OFString *)host port: (uint16_t)port block: (of_tcp_socket_async_connect_block_t)block; # endif #endif @@ -155,11 +155,11 @@ * IPv6 to bind to all. * @param port The port to bind to. If the port is 0, an unused port will be * chosen, which can be obtained using the return value. * @return The port the socket was bound to */ -- (uint16_t)bindToHost: (OFString*)host +- (uint16_t)bindToHost: (OFString *)host port: (uint16_t)port; /*! * @brief Listen on the socket. * @@ -209,11 +209,11 @@ * * Only works with accepted sockets! * * @return The remote address as a string */ -- (nullable OFString*)remoteAddress; +- (nullable OFString *)remoteAddress; /*! * @brief Returns whether the socket is a listening socket. * * @return Whether the socket is a listening socket