multiformats / go-multistream

an implementation of the multistream protocol in go
MIT License
41 stars 27 forks source link

signal selected protocol to callers #7

Open whyrusleeping opened 8 years ago

whyrusleeping commented 8 years ago

When the handlerfunc for a particular handler is called, we should signal which protocol was selected. This will make it easier for application logic to change its behaviour based on protocol versions.

jbenet commented 8 years ago

Related: https://github.com/multiformats/multistream/issues/8