Naga on Android - openSocket

28 views
Skip to first unread message

Paolo

unread,
Apr 24, 2011, 11:52:10 AM4/24/11
to Naga Users
Hi,

I'm trying Naga on Android.

I've a simple question... openSocket(String,string) of the NIOService
is synchronous ?! Is it possible to make it asynchronous ?

Many thanks,

Paolo

Nuoji

unread,
Apr 27, 2011, 2:21:47 AM4/27/11
to Naga Users
Hi Paolo,

Yes, it is synchronous, are you experiencing any delays making the
call? The only thing that should slow that method is the lookup if you
hand it a domain name instead of an ip. I suggest resolving the domain
name on a separate thread (or when starting the app) and then pass in
a resolved InetAddress using openSocket(InetAddress inetAddress, int
port) instead.

Sincerely,

Christoffer
Reply all
Reply to author
Forward
0 new messages