Failed to create a selector
Posted: 30 Jun 2016, 09:23
I'm trying to use libgdx (so I use java API for iOS) with smartfoxserver. I got android and desktop running fine ( able to connect to and login to a localhost smartfoxserver), but been having this problem on iOS
On the client I'm seeing this error:
sfs2x.client.core.sockets.TCPSocketLayer - TCPSocketLayer: Socket error: Failed to create a selector. And no connection event was received.
On the server I see a session created but removed immediately after.
16:02:19,298 INFO [SocketReader] sessions.DefaultSessionManager - Session created: { Id: 3, Type: DEFAULT, Logged: No, IP: 127.0.0.1:49365 } on Server port: 9933 <---> 49365
16:02:19,299 INFO [SocketReader] sessions.DefaultSessionManager - Session removed: { Id: 3, Type: DEFAULT, Logged: No, IP: 127.0.0.1:49365 }
What could be the problem? I suppose I use address 127.0.0.1 for iPhone simulator (unlike Android emulator uses 10.0.2.2).
On the client I'm seeing this error:
sfs2x.client.core.sockets.TCPSocketLayer - TCPSocketLayer: Socket error: Failed to create a selector. And no connection event was received.
On the server I see a session created but removed immediately after.
16:02:19,298 INFO [SocketReader] sessions.DefaultSessionManager - Session created: { Id: 3, Type: DEFAULT, Logged: No, IP: 127.0.0.1:49365 } on Server port: 9933 <---> 49365
16:02:19,299 INFO [SocketReader] sessions.DefaultSessionManager - Session removed: { Id: 3, Type: DEFAULT, Logged: No, IP: 127.0.0.1:49365 }
What could be the problem? I suppose I use address 127.0.0.1 for iPhone simulator (unlike Android emulator uses 10.0.2.2).