Can I catch connection timeout exception?

Post here your questions about the Java client / Android API for SFS2X

Moderators: Lapo, Bax

king3200
Posts: 25
Joined: 28 Oct 2010, 01:48

Can I catch connection timeout exception?

Postby king3200 » 19 Nov 2011, 10:11

hi there~~~
I met an exception when connecting, if connect timeout sfs print those message:

Code: Select all

10625 [New I/O client boss #1] ERROR sfs2x.client.core.sockets.TCPSocketLayer - TCPSocketLayer: Socket error: connection timed out
10625 [New I/O client boss #1] INFO sfs2x.client.core.EventDispatcher - Dispatching event OnError to 1 listeners
10625 [New I/O client boss #1] INFO sfs2x.client.core.EventDispatcher - Dispatching event ioError to 1 listeners
2011-11-19 17:58:23 org.jboss.netty.channel.SimpleChannelUpstreamHandler
warn: EXCEPTION, please implement sfs2x.client.bitswarm.bbox.BBClient$HttpResponseHandler.exceptionCaught() for proper handling.


can I catch the IOException and handle by myself?
thanks :D
nicolash
Posts: 12
Joined: 24 Oct 2011, 05:51
Location: France
Contact:

Postby nicolash » 24 Nov 2011, 10:42

i need that too!
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 28 Nov 2011, 13:44

CONNECTION_LOST event doesnt work for you to solve this?

/Thomas
Full Control - maker of Unity/C# and Java SFS API and indie games
Follow on twitter: http://twitter.com/thomas_h_lund

Return to “SFS2X Java / Android API”

Who is online

Users browsing this forum: No registered users and 36 guests