2
0
mirror of synced 2025-02-23 14:18:13 +00:00
torrent/callbacks.go
2020-07-15 16:16:14 +10:00

13 lines
351 B
Go

package torrent
import (
pp "github.com/anacrolix/torrent/peer_protocol"
)
// These are called synchronously, and do not pass ownership. The Client and other locks may still
// be held. nil functions are not called.
type Callbacks struct {
CompletedHandshake func(_ *PeerConn, infoHash InfoHash)
ReadMessage func(*PeerConn, *pp.Message)
}