reiver / go-telnet

Package telnet provides TELNET and TELNETS client and server implementations, for the Go programming language, in a style similar to the "net/http" library that is part of the Go standard library, including support for "middleware"; TELNETS is secure TELNET, with the TELNET protocol over a secured TLS (or SSL) connection.
https://godoc.org/github.com/reiver/go-telnet
MIT License
266 stars 83 forks source link

Add Connection method with timeout support #13

Open torre76 opened 5 years ago

torre76 commented 5 years ago

For a personal project I needed that telnet should quickly connect or fail after a timeout.

I added two new methods to allow to specify Timeout using time.Duration.