how to listen socket error event while sever not reachable
Posted: 23 Aug 2011, 19:08
hello guys,i tried to add event listener on
SFSEvent.SOCKET_ERROR
and
IOErrorEvent.IO_ERROR
and try to check as if the server is connectable.so i shut down sfs before i run client.
but i only got is SFSEvent.CONNECTION and tell me that bulebox cannot be connected
and the output info like these below
it looks the socket error really occurred,but the listener can't catch it
WHY?
SFSEvent.SOCKET_ERROR
and
IOErrorEvent.IO_ERROR
and try to check as if the server is connectable.so i shut down sfs before i run client.
but i only got is SFSEvent.CONNECTION and tell me that bulebox cannot be connected
and the output info like these below
Code: Select all
## SocketError: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2031: Socket Error。 URL: 127.0.0.1"]
## BlueBox Error: Error #2032: Stream Error。 URL: http://127.0.0.1:8080/BlueBox/BlueBox.doWHY?