Differences From Artifact [4d85340515]:
- File
src/OFTCPSocket.h
— part of check-in
[49b1989b63]
at
2014-01-26 22:38:28
on branch trunk
— Move resolving functionality to resolver.m
This is in preparation for UDP sockets, so that they can share the
resolving functionality with TCP sockets. (user: js, size: 7014) [annotate] [blame] [check-ins using]
To Artifact [fee5d55648]:
- File
src/OFTCPSocket.h
— part of check-in
[5025cba435]
at
2014-01-27 22:01:46
on branch trunk
— Add OFUDPSocket
Async operations will follow later. (user: js, size: 7018) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
164 165 166 167 168 169 170 | - (void)asyncConnectToHost: (OFString*)host port: (uint16_t)port block: (of_tcpsocket_async_connect_block_t)block; # endif #endif /*! | | | | | 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 | - (void)asyncConnectToHost: (OFString*)host port: (uint16_t)port block: (of_tcpsocket_async_connect_block_t)block; # endif #endif /*! * @brief Bind the socket to the specified host and port. * * @param host The host to bind to. Use `@"0.0.0.0"` for IPv4 or `@"::"` for * 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 port: (uint16_t)port; |
︙ | ︙ |