Documentation ¶
Index ¶
Constants ¶
View Source
const (
// MaxBlocksPerMsg is the maximum number of blocks allowed per message.
MaxBlocksPerMsg = 500
)
Variables ¶
This section is empty.
Functions ¶
func DisableLog ¶
func DisableLog()
DisableLog disables all library log output. Logging output is disabled by default until either UseLogger or SetLogWriter are called.
Types ¶
type Server ¶
server provides a server for handling communications to and from peers.
func New ¶
New returns a new server instance configured to specified config parameters. Use start to begin accepting connections from peers.
func (*Server) DonePeer ¶
DonePeer removes a peer that has already been connected to the server by ip.
func (*Server) RelayInventory ¶
RelayInventory relays the passed inventory vector to all connected peers that are not already known to have it.
func (*Server) Services ¶
func (s *Server) Services() pact.ServiceFlag
Services returns the service flags the server supports.
Click to show internal directories.
Click to hide internal directories.