l void <strong>add_handshake</strong> (entry&amp;);
   virtual void <strong>on_disconnect</strong> (error_code const&amp;);
   virtual void <strong>on_connected</strong> ();
   virtual bool <strong>on_handshake</strong> (span&lt;char const&gt;);
   virtual bool <strong>on_extension_handshake</strong> (bdecode_node const&amp;);
   virtual bool <strong>on_dont_have</strong> (piece_index_t);
   virtual bool <strong>on_choke</strong> ();
   virtual bool <strong>on_have</strong> (piece_index_t);
   virtual bool 