TCPObject bug
by Ian Omroth Hardingham · in Torque Game Engine · 05/11/2008 (7:37 am) · 2 replies
Hey guys.
It would appear that if you have a TCPObject whateverCon:
And you set it to listen on one port
and then later on you set it to listen on another port
That some of the, er, magic TCP code doesn't clear port1 totally. To be honest this came up slightly bizarrely - with two instances of Torque running on one machine and trying to have a connection each way. But I think the bug is there.
Ian
It would appear that if you have a TCPObject whateverCon:
new TCPObject(WhateverCon);
And you set it to listen on one port
WhateverCon.listen(28001);
and then later on you set it to listen on another port
WhateverCon.listen(28002);
That some of the, er, magic TCP code doesn't clear port1 totally. To be honest this came up slightly bizarrely - with two instances of Torque running on one machine and trying to have a connection each way. But I think the bug is there.
Ian
About the author
Designer and lead programmer on Frozen Synapse, Frozen Endzone, and Determinance. Co-owner of Mode 7 Games.
#2
05/11/2008 (12:44 pm)
That sounds plausible, thanks Nathan - I guess you could well want to listen on two ports. Disaster averted!
Torque Owner Nathan Martin
TRON 2001 Network
So, the easiest way to go around it is to delete and recreate the TCPObject and then listen on the next port. I do not recall how to delete or kill an instance of an object, again it has been a while. :)