Added configurable timeouts and overridable version string

This commit is contained in:
Andrew Montgomery-Hurrell
2014-02-09 10:20:58 +00:00
parent a1d207d5fa
commit c0e6d50e0c
3 changed files with 47 additions and 9 deletions

View File

@@ -17,8 +17,13 @@ type Connection struct {
Password string
UseTLS bool
TLSConfig *tls.Config
Version string
Timeout time.Duration
PingFreq time.Duration
KeepAlive time.Duration
socket net.Conn
netsock net.Conn
pread, pwrite chan string
readerExit, writerExit, pingerExit chan bool
endping chan bool