setStreamHandler abstract method

void setStreamHandler(
  1. ProtocolID pid,
  2. StreamHandler handler
)

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);