Telnet session reconnection

0 votes
asked Apr 30, 2014 by Martin House (570 points)
edited Apr 30, 2014

I have an application that runs on a mobile device ( Windows Mobile ), connecting to a Telnet server. The complete app, including the Telnet interface is written in vb. It has a problem though : From time to time the mobile device may 'sleep' or even loose power. When the device comes alive again, I need the session to continue from where it left off, but the device sees the session as closed.

I'd be interested in trying the Telnet library ( Compact Framework version ) - to see if it can handle the temporary session disconnect from the mobile device in a better way.

Does anyone have any thoughts or suggest in this area please ?

Thanks Mart

2 Answers

0 votes
answered Apr 30, 2014 by Lukas Pokorny (124,570 points)
edited Apr 30, 2014
Best answer

Unfortunately, our Telnet library does not currently support .NET Compact Framework. We have an experimental build for .NET CF, but it lacks the TerminalControl object (VirtualTerminal is there, however), which somewhat limits its usefulness. If you would like to give it a try, please let me know.

However, I don't think it would handle those disconnected session any better - when a telnet cnnection is lost, there is no way to resume it. One possible solution is the screen command supported by many Unix variants - check out for more information.

0 votes
answered Apr 30, 2014 by Martin House (570 points)
edited Apr 30, 2014

Thanks Lukas, understood :-)