| 339 | } |
| 340 | |
| 341 | static inline void CreateSockets(TSockets& s, ui16 port) { |
| 342 | TNetworkAddress addr(port); |
| 343 | |
| 344 | for (TNetworkAddress::TIterator it = addr.Begin(); it != addr.End(); ++it) { |
| 345 | TSocketHolder res; |
| 346 | |
| 347 | CreateSocket(res, TAddrInfo(&*it)); |
| 348 | |
| 349 | s.push_back(new TSocketDescr(res, it->ai_family)); |
| 350 | } |
| 351 | } |
| 352 | |
| 353 | static inline void CreateSocketsOnRandomPort(TSockets& s) { |
| 354 | while (true) { |
no test coverage detected