View definition

(MessageListeners).OnWrite

Defined in github.com/btcsuite/btcd/peer/peer.go

Description

OnWrite is invoked when we write a bitcoin message to a peer. It consists of the number of bytes written, the message, and whether or not an error in the write occurred. This can be useful for circumstances such as keeping track of server-wide byte counts.

OnWrite is referenced in 2 repositories

github.com/btcsuite/btcd

...