move automatic protocol selection into Setup()

This commit is contained in:
aler9
2020-11-29 13:05:33 +01:00
parent daebb85421
commit 6db4c3b85d
4 changed files with 36 additions and 57 deletions

View File

@@ -23,10 +23,6 @@ func main() {
ReadTimeout: 10 * time.Second,
// timeout of write operations
WriteTimeout: 10 * time.Second,
// read buffer count.
// If greater than 1, allows to pass buffers to routines different than the one
// that is reading frames
ReadBufferCount: 1,
}
// connect to the server and start reading all tracks