| 1328 | } |
| 1329 | |
| 1330 | IRequester* CreateHttpUdpRequester(int port) { |
| 1331 | if (PanicAttack) |
| 1332 | return nullptr; |
| 1333 | |
| 1334 | TIntrusivePtr<NNetlibaSocket::ISocket> socket = NNetlibaSocket::CreateSocket(); |
| 1335 | socket->Open(port); |
| 1336 | if (!socket->IsValid()) |
| 1337 | return nullptr; |
| 1338 | |
| 1339 | return CreateHttpUdpRequester(socket); |
| 1340 | } |
| 1341 | |
| 1342 | IRequester* CreateHttpUdpRequester(const TIntrusivePtr<NNetlibaSocket::ISocket>& socket) { |
| 1343 | if (PanicAttack) |