setStreamHandlerMatch abstract method

void setStreamHandlerMatch(
  1. ProtocolID pid,
  2. bool match(
    1. ProtocolID
    ),
  3. StreamHandler handler
)

SetStreamHandlerMatch sets the protocol handler on the Host's Mux using a matching function for protocol selection.

Implementation

void setStreamHandlerMatch(ProtocolID pid, bool Function(ProtocolID) match, StreamHandler handler);