addHandler abstract method

void addHandler(
  1. ProtocolID protocol,
  2. HandlerFunc handler
)

AddHandler registers the given handler to be invoked for an exact literal match of the given protocol ID string.

Implementation

void addHandler(ProtocolID protocol, HandlerFunc handler);