I am currently using the TelnetClient class from org.apache.commons.net.telnet.TelnetClient but i have encourntered a problem. When calling TelnetClient.disconnect() from some code excecuting on my home machine, the method returns instantly, but when calling the method from my code running on an android device the method just hangs, never returning.
I know this is not an android forum
but i was hoping that this may be an issue that could be related to core java. Any ideas what could be causing this or what i should be looking out for?Debug the program in the Android emulator, and ask your question on the Android Developer (Google) mailing group. There are so many things that are different when it comes to the Android development, and your problem is probably related to Android.
Thanks for any pointers...
Sir_Dori wrote:Strange. My messages appear instantly if you check the mailing list, it might however take a few hours before they are visible in your rss reader (if you are using one)
Hi, thanks for you replys.
Will try again with the android dev forums, in past experience half my messages dont get posted and the other half take about 5 days to appear, very slow indeed.
Sir_Dori wrote:The problem in many cases is that google groups don't send out the mail to the sender, so the sender never sees his mail, but he will see replies to that mail, and he will see the mail if he searches the group.
That is strange, ive often wondered about this and seen people posting on other forums saying that there messages never get posted as well, but there is no way it seems to contact google about this as all correspondence seem to be through the forums, no secondary point of contact that i know of...
and it just hangs there. Any ideas at all?
telnet.connect( ipAddress , 6969 ); // Get input and output stream references in = telnet.getInputStream(); out = new PrintStream( telnet.getOutputStream() ); Log.d(TAG, "test disconnect"); telnet.disconnect(); //this line stalls Log.d(TAG, "test disconnected");
Sir_Dori wrote:Awesome. Thanks for the heads-up and the excellent display of forum etiquette.
ive also asked the question here in case anyone does know the answer and wants to respond :)
Sir_Dori wrote:I had hoped the "Sincerely" would cover that.
Im not sure if your being sarcastic or not!? :/
I only posted on the anddev forum after being told the question woudnt be answered here,Not at all. How would you recommend I phrase my compliment so as to not convey sarcasm?
sorry if ive made a mistake!