HTTPObject with CURL

This commit is contained in:
Glenn Smith 2021-09-14 03:30:16 -04:00
parent 9b783784b1
commit 20eb0a911a
No known key found for this signature in database
GPG key ID: 9B71EC283F0B7A14
296 changed files with 131348 additions and 343 deletions

View file

@ -25,6 +25,7 @@
#include "core/strings/stringFunctions.h"
#include "core/util/hashFunction.h"
#include "console/consoleTypes.h"
#include "app/net/httpObject.h"
// jamesu - debug DNS
//#define TORQUE_DEBUG_LOOKUPS
@ -558,6 +559,7 @@ bool Net::init()
smConnectionReceive = new ConnectionReceiveEvent();
smPacketReceive = new PacketReceiveEvent();
HTTPObject::init();
Process::notify(&Net::process, PROCESS_NET_ORDER);
@ -568,6 +570,8 @@ void Net::shutdown()
{
Process::remove(&Net::process);
HTTPObject::shutdown();
while (gPolledSockets.size() > 0)
{
if (gPolledSockets[0] == NULL)
@ -1099,6 +1103,9 @@ void Net::process()
processListenSocket(PlatformNetState::udpSocket);
processListenSocket(PlatformNetState::udp6Socket);
// process HTTPObject
HTTPObject::process();
// process the polled sockets. This blob of code performs functions
// similar to WinsockProc in winNet.cc