Versions in this module Expand all Collapse all v0 v0.2.3 Feb 27, 2015 v0.2.2 Feb 27, 2015 Changes in this version + func ReadLengthPrefix(r io.Reader) (string, error) + func WriteHeader(w io.Writer, id ID) error + type ID string + const TestingID + func ReadHeader(r io.Reader) (ID, error) + type Mux struct + func NewMux() *Mux + func (m *Mux) Handle(s inet.Stream) + func (m *Mux) HandleSync(s inet.Stream) + func (m *Mux) Protocols() []ID + func (m *Mux) RemoveHandler(p ID) + func (m *Mux) SetDefaultHandler(h inet.StreamHandler) + func (m *Mux) SetHandler(p ID, h inet.StreamHandler) + func (m *Mux) String() string