Furrent
Public Member Functions | List of all members
fur::download::message::ChokeMessage Class Referencefinal

#include <message.hpp>

Inheritance diagram for fur::download::message::ChokeMessage:
Inheritance graph
[legend]
Collaboration diagram for fur::download::message::ChokeMessage:
Collaboration graph
[legend]

Public Member Functions

MessageKind kind () const override
 
- Public Member Functions inherited from fur::download::message::Message
virtual ~Message ()=default
 
virtual std::vector< uint8_t > encode () const
 

Additional Inherited Members

- Static Public Member Functions inherited from fur::download::message::Message
static Result< std::unique_ptr< Message >, DecodeErrordecode (const TorrentFile &torrent, const std::vector< uint8_t > &buf)
 

Detailed Description

Inform the peer that we're not going to accept any more requests until unchoked. <length=1><id=0>

Member Function Documentation

◆ kind()

MessageKind fur::download::message::ChokeMessage::kind ( ) const
inlineoverridevirtual

Returns the kind of this message. Used before dynamic_casting when the underlying type is not known beforehand.

Implements fur::download::message::Message.


The documentation for this class was generated from the following file: