View definition


Defined in


OnRead is invoked when a peer receives a bitcoin message. It consists of the number of bytes read, the message, and whether or not an error in the read occurred. Typically, callers will opt to use the callbacks for the specific message types, however this can be useful for circumstances such as keeping track of server-wide byte counts or working with custom message types for which the peer does not directly provide a callback.

OnRead is referenced in 2 repositories