Basically, I have intentionally entered the wrong IP and have the following code:
Code: Select all
private function onConnection(evt:SFSEvent):void
strCurrentStep += "\nConnection successful!";
strCurrentStep += "\nUnable to connect to " + _conn.currentIp + ":" + _conn.currentPort;
Instead of displaying the error, it does nothing. As if that function is not being called. However, when I enter the correct IP/Port - the "Connection successful!" message does appear as it should.
Is it constantly retrying to connect? Is there not a timeout limit? What am I doing wrong?