Added configurable timeouts and overridable version string
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user