mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-19 19:35:26 +00:00
Fix lookup issue on TCPObject. Also sync with working code.
This commit is contained in:
parent
458bc27ea4
commit
5b1bb6547a
4 changed files with 145 additions and 59 deletions
|
|
@ -320,7 +320,7 @@ void StandardMainLoop::init()
|
|||
Sampler::init();
|
||||
|
||||
// Hook in for UDP notification
|
||||
Net::smPacketReceive.notify(GNet, &NetInterface::processPacketReceiveEvent);
|
||||
Net::getPacketReceiveEvent().notify(GNet, &NetInterface::processPacketReceiveEvent);
|
||||
|
||||
#ifdef TORQUE_DEBUG_GUARD
|
||||
Memory::flagCurrentAllocs( Memory::FLAG_Static );
|
||||
|
|
|
|||
|
|
@ -215,9 +215,9 @@ TCPObject::TCPObject()
|
|||
|
||||
if(gTCPCount == 1)
|
||||
{
|
||||
Net::smConnectionAccept.notify(processConnectedAcceptEvent);
|
||||
Net::smConnectionReceive.notify(processConnectedReceiveEvent);
|
||||
Net::smConnectionNotify.notify(processConnectedNotifyEvent);
|
||||
Net::getConnectionAcceptedEvent().notify(processConnectedAcceptEvent);
|
||||
Net::getConnectionReceiveEvent().notify(processConnectedReceiveEvent);
|
||||
Net::getConnectionNotifyEvent().notify(processConnectedNotifyEvent);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -230,9 +230,9 @@ TCPObject::~TCPObject()
|
|||
|
||||
if(gTCPCount == 0)
|
||||
{
|
||||
Net::smConnectionAccept.remove(processConnectedAcceptEvent);
|
||||
Net::smConnectionReceive.remove(processConnectedReceiveEvent);
|
||||
Net::smConnectionNotify.remove(processConnectedNotifyEvent);
|
||||
Net::getConnectionAcceptedEvent().remove(processConnectedAcceptEvent);
|
||||
Net::getConnectionReceiveEvent().remove(processConnectedReceiveEvent);
|
||||
Net::getConnectionNotifyEvent().remove(processConnectedNotifyEvent);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue