Asynchronous Telnet Shell Jobs

0 votes
asked Jan 20, 2014 by Matthew6640 (120 points)
edited Jan 21, 2014

Is it possible to run telnet shell jobs asynchronously?

1 Answer

0 votes
answered Jan 21, 2014 by Lukas Pokorny (123,810 points)
edited Jan 21, 2014

It is possible to use a single instance of Telnet object to launch multiple shells with StartShell, StartVirtualTerminal methods or bind it to multiple TerminalControl or VirtualTerminal objects. Each of these operations actually opens a new telnet connection and all the connections are independent, which means they can run asynchronously and be used from different threads.

However, Shell, TerminalControl and 'VirtualTerminal` objects themselves are not thread-safe, which means that you can't use them from multiple threads at the same time (unless you provide synchronization the access yourself).

(Also, please keep in mind that some servers might limit the maximum number of connections from a single IP address.)

...