Documentation ¶
Index ¶
- Constants
- type TCP
- func (t *TCP) AddPeer(peer string)
- func (t *TCP) Block(reference *bcgo.Reference) (*bcgo.Block, error)
- func (t *TCP) Broadcast(channel bcgo.Channel, cache bcgo.Cache, hash []byte, block *bcgo.Block) error
- func (t *TCP) Connect(peer string, data []byte) error
- func (t *TCP) Head(channel string) (*bcgo.Reference, error)
- func (t *TCP) PeerForAddress(address string) string
- func (t *TCP) Peers() (peers []string)
- func (t *TCP) SetPeers(peers ...string)
Constants ¶
View Source
const ( MAX_TCP_ERRORS = 10 TIMEOUT = 3 * time.Minute PORT_CONNECT = 22022 PORT_GET_BLOCK = 22222 PORT_GET_HEAD = 22322 PORT_BROADCAST = 23232 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.