add a callback that is called when the crypto level changes

This commit is contained in:
Marten Seemann
2016-12-15 13:35:55 +07:00
parent 4130c3de32
commit a7afd72795
5 changed files with 49 additions and 8 deletions

View File

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