styles
11-18-2008, 02:42 PM
When attempting to connect to a server that doesn't exist it takes around 15-20 seconds for Telnet.Connect() to throw an exception. Is there anyway to specify the amount of time to wait during a connection attempt before timing out? I'm connecting to multiple servers and waiting 20 or so seconds is too long.
Setting the Telnet.Timeout parameter does not have any effect when connecting.
I can't tell if it's a case of poor documentation with the .NET Telnet component
[see /telnetfactorydotnet/docs/api/html/Jscape.Telnet.Telnet.Timeout.html/]
but it seems as if the java version supports this
[see /sshfactory/docs/javadoc/com/jscape/inet/telnet/Telnet.html#setTimeout(int)]
prepend the jscape website to the links above. The forum would not let me paste the proper links.
Setting the Telnet.Timeout parameter does not have any effect when connecting.
I can't tell if it's a case of poor documentation with the .NET Telnet component
[see /telnetfactorydotnet/docs/api/html/Jscape.Telnet.Telnet.Timeout.html/]
but it seems as if the java version supports this
[see /sshfactory/docs/javadoc/com/jscape/inet/telnet/Telnet.html#setTimeout(int)]
prepend the jscape website to the links above. The forum would not let me paste the proper links.