setStreamHandler abstract method
SetStreamHandler sets the protocol handler on the Host's Mux. This is equivalent to: host.Mux().SetHandler(proto, handler) (Thread-safe)
Implementation
void setStreamHandler(ProtocolID pid, StreamHandler handler);
SetStreamHandler sets the protocol handler on the Host's Mux. This is equivalent to: host.Mux().SetHandler(proto, handler) (Thread-safe)
void setStreamHandler(ProtocolID pid, StreamHandler handler);