mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
HTTPObject with CURL
This commit is contained in:
parent
9b783784b1
commit
20eb0a911a
296 changed files with 131348 additions and 343 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue