Mercurial > hg > openttd
comparison src/network/core/address.cpp @ 19968:0dba7f49118c draft
(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow)
author | planetmaker <planetmaker@openttd.org> |
---|---|
date | Tue, 08 Jan 2013 22:46:42 +0000 |
parents | 21b01031dbd7 |
children |
comparison
equal
deleted
inserted
replaced
19967:c2d0016cc9d6 | 19968:0dba7f49118c |
---|---|
257 | 257 |
258 SOCKET sock = INVALID_SOCKET; | 258 SOCKET sock = INVALID_SOCKET; |
259 for (struct addrinfo *runp = ai; runp != NULL; runp = runp->ai_next) { | 259 for (struct addrinfo *runp = ai; runp != NULL; runp = runp->ai_next) { |
260 /* When we are binding to multiple sockets, make sure we do not | 260 /* When we are binding to multiple sockets, make sure we do not |
261 * connect to one with exactly the same address twice. That's | 261 * connect to one with exactly the same address twice. That's |
262 * ofcourse totally unneeded ;) */ | 262 * of course totally unneeded ;) */ |
263 if (sockets != NULL) { | 263 if (sockets != NULL) { |
264 NetworkAddress address(runp->ai_addr, (int)runp->ai_addrlen); | 264 NetworkAddress address(runp->ai_addr, (int)runp->ai_addrlen); |
265 if (sockets->Contains(address)) continue; | 265 if (sockets->Contains(address)) continue; |
266 } | 266 } |
267 sock = func(runp); | 267 sock = func(runp); |