Overview
Comment: | Make it possible to let -[bindToPort:onHost:] choose a port. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
d983af3d934bc3a335491fa6559896a1 |
User & Date: | js on 2011-03-29 23:19:11 |
Other Links: | manifest | tags |
Context
2011-03-29
| ||
23:27 | Work around compiler bugs. check-in: 6022cfa458 user: js tags: trunk | |
23:19 | Make it possible to let -[bindToPort:onHost:] choose a port. check-in: d983af3d93 user: js tags: trunk | |
19:28 | Work around a compiler bug. check-in: 0972a6eb56 user: js tags: trunk | |
Changes
Modified src/OFTCPSocket.h from [c8cf94209d] to [146d82e777].
︙ | |||
48 49 50 51 52 53 54 | 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | - + + + - - + + | */ - (void)connectToHost: (OFString*)host onPort: (uint16_t)port; /** * Bind the socket on the specified port and host. * |
︙ |
Modified src/OFTCPSocket.m from [f3c6437253] to [c47e3134d6].
︙ | |||
191 192 193 194 195 196 197 | 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 | - - + + + + + | if (sock == INVALID_SOCKET) @throw [OFConnectionFailedException newWithClass: isa socket: self host: host port: port]; } |
︙ | |||
231 232 233 234 235 236 237 | 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 | - + - - + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | host: host port: port]; } freeaddrinfo(res); #else struct hostent *he; |
︙ |
Modified tests/OFHTTPRequestTests.m from [d40fc902b8] to [718beda726].
︙ | |||
45 46 47 48 49 50 51 | 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | - - + + | - main { OFTCPSocket *listener, *client; [cond lock]; listener = [OFTCPSocket socket]; |
︙ | |||
91 92 93 94 95 96 97 | 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 | - - - - + + + - - - | OFHTTPRequest *req; OFHTTPRequestResult *res; cond = [OFCondition condition]; [cond lock]; server = [[[OFHTTPRequestTestsServer alloc] init] autorelease]; |
Modified tests/OFTCPSocketTests.m from [28dc0fa910] to [5ae827977d].
︙ | |||
12 13 14 15 16 17 18 | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | - - - - - - - - - - - + + | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" |
︙ |