| 1478 | } |
| 1479 | |
| 1480 | IRequester* CreateHttpUdpRequester(int port) { |
| 1481 | if (AtomicAdd(PanicAttack, 0)) |
| 1482 | return nullptr; |
| 1483 | |
| 1484 | TIntrusivePtr<ISocket> socket = NNetlibaSocket::CreateBestRecvSocket(); |
| 1485 | socket->Open(port); |
| 1486 | if (!socket->IsValid()) |
| 1487 | return nullptr; |
| 1488 | |
| 1489 | return CreateHttpUdpRequester(socket); |
| 1490 | } |
| 1491 | |
| 1492 | IRequester* CreateHttpUdpRequester(const TIntrusivePtr<NNetlibaSocket::ISocket>& socket) { |
| 1493 | if (AtomicAdd(PanicAttack, 0)) |