add a callback to client that is called after the version is negotiated

This commit is contained in:
Marten Seemann
2016-12-14 18:35:33 +07:00
parent 2377b3a111
commit dc05de3312
3 changed files with 37 additions and 10 deletions

View File

@@ -10,7 +10,7 @@ func main() {
utils.SetLogLevel(utils.LogLevelDebug)
client, err := quic.NewClient(addr)
client, err := quic.NewClient(addr, func() error { return nil })
if err != nil {
panic(err)
}