Game Development Community

NetConnection::eventOnRemove Question/Bug

by William Todd Scott · in Torque Game Engine Advanced · 12/25/2007 (11:34 am) · 2 replies

Hi,

In the NetConnection::eventOnRemove() function, the code goes through the notify event list, unordered send event queue, and the send event queue. It removes the events from each list and calls nofifyDelivered() for the event. However, the second parameter of notifyDelivered is "true" indicating that the event was delivered.

However, none of these events were delivered.

Should the second parameter be "false"? If not, why not?

Thanks
Todd

#1
12/25/2007 (12:27 pm)
No it should not.
Not deliveried would mean that it potentially needs to be resent.
But as the object was removed, it is meant to be "removed" and all the data that should have been sent regarding that object must be canceled. It makes no sense sending data of an object not existing anymore, it just wastes bandwidth.
#2
12/25/2007 (10:10 pm)
Thanks Marc, I appreciate the help.

Todd