Yes, it does seem a bit strange that the constructor does a *connect*.
Thanks. On Friday, February 22, 2013 1:29:07 PM UTC-6, Lew wrote: > > bob wrote: > >> I'm doing TCP, not UDP. >> >> Also, it is not HTTP. >> >> I want to set the timeout for something like this: >> >> *Socket socket = new Socket(ip_address, 31000);* >> >>> >>>> > Always reach for the Javadocs first, bob. > http://developer.android.com/reference/java/net/Socket.html > > Specifically, > > http://developer.android.com/reference/java/net/Socket.html#connect(java.net.SocketAddress, > > int) > > They really shouldn't have given a constructor that does more than > construct. > > -- > Lew > > -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

