@@ -36,35 +36,35 @@ * Connect the OFTCPSocket to the specified destination. * * \param service The service on the node to connect to * \param node The node to connect to */ -- connectToService: (OFString*)service - onNode: (OFString*)node; +- (void)connectToService: (OFString*)service + onNode: (OFString*)node; /** * Bind socket on the specified node and service. * * \param service The service to bind * \param node The node to bind to * \param family The family to use (AF_INET for IPv4 or AF_INET6 for IPv6) */ -- bindService: (OFString*)service - onNode: (OFString*)node - withFamily: (int)family; +- (void)bindService: (OFString*)service + onNode: (OFString*)node + withFamily: (int)family; /** * Listen on the socket. * * \param backlog Maximum length for the queue of pending connections. */ -- listenWithBackLog: (int)backlog; +- (void)listenWithBackLog: (int)backlog; /** * Listen on the socket. */ -- listen; +- (void)listen; /** * Accept an incoming connection. * \return An autoreleased OFTCPSocket for the accepted connection. */ @@ -71,14 +71,14 @@ - (OFTCPSocket*)accept; /** * Enable or disable keep alives for the connection. */ -- enableKeepAlives: (BOOL)enable; +- (void)setKeepAlivesEnabled: (BOOL)enable; /** * Returns the remote address of the socket. Only works with accepted sockets! * * \return The remote address as a string. */ - (OFString*)remoteAddress; @end