mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Removes bits of code and includes that are based on old 360, xbox and PS3 flags that are no longer needed.
This commit is contained in:
parent
513789c2c7
commit
26fd24fbab
43 changed files with 35 additions and 356 deletions
|
|
@ -27,8 +27,6 @@
|
|||
|
||||
#if defined(TORQUE_OS_WIN)
|
||||
# include <winsock.h>
|
||||
#elif defined(TORQUE_OS_XENON)
|
||||
# include <Xtl.h>
|
||||
#else
|
||||
# include <netdb.h>
|
||||
# include <unistd.h>
|
||||
|
|
@ -80,8 +78,6 @@ struct NetAsync::NameLookupWorkItem : public ThreadPool::WorkItem
|
|||
protected:
|
||||
virtual void execute()
|
||||
{
|
||||
#ifndef TORQUE_OS_XENON
|
||||
|
||||
NetAddress address;
|
||||
Net::Error error = Net::stringToAddress(mRequest.remoteAddr, &address, true);
|
||||
|
||||
|
|
@ -102,28 +98,6 @@ protected:
|
|||
mRequest.out_h_length = sizeof(address);
|
||||
mRequest.complete = true;
|
||||
}
|
||||
#else
|
||||
XNDNS *pxndns = NULL;
|
||||
HANDLE hEvent = CreateEvent(NULL, false, false, NULL);
|
||||
XNetDnsLookup(mRequest.remoteAddr, hEvent, &pxndns);
|
||||
|
||||
while(pxndns->iStatus == WSAEINPROGRESS)
|
||||
WaitForSingleObject(hEvent, INFINITE);
|
||||
|
||||
if(pxndns->iStatus == 0 && pxndns->cina > 0)
|
||||
{
|
||||
dMemset(mRequest.out_h_addr, 0, sizeof(mRequest.out_h_addr));
|
||||
|
||||
// This is a suspect section. I need to revisit. [2/22/2010 Pat]
|
||||
dMemcpy(mRequest.out_h_addr, pxndns->aina, sizeof(IN_ADDR));
|
||||
mRequest.out_h_length = sizeof(IN_ADDR);
|
||||
}
|
||||
|
||||
mRequest.complete = true;
|
||||
|
||||
XNetDnsRelease(pxndns);
|
||||
CloseHandle(hEvent);
|
||||
#endif
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue