Versions in this module Expand all Collapse all v0 v0.7.2 Apr 16, 2020 v0.7.1 Apr 9, 2020 Changes in this version + func NewNetServer() p2p.P2P + func TLSDial(nodeAddr string) (net.Conn, error) + type InConnectionRecord struct + InConnectingAddrs set.StringSet + type NetServer struct + NetChan chan *types.MsgPayload + Np *peer.NbrPeers + OwnAddress string + func (this *NetServer) AddInConnRecord(addr string) + func (this *NetServer) AddNbrNode(remotePeer *peer.Peer) + func (this *NetServer) AddOutConnRecord(addr string) + func (this *NetServer) AddOutConnectingList(addr string) (added bool) + func (this *NetServer) AddPeerAddress(addr string, p *peer.Peer) + func (this *NetServer) AddrValid(addr string) bool + func (this *NetServer) Connect(addr string) error + func (this *NetServer) DelNbrNode(id uint64) (*peer.Peer, bool) + func (this *NetServer) GetConnectionCnt() uint32 + func (this *NetServer) GetHeight() uint64 + func (this *NetServer) GetHttpInfoPort() uint16 + func (this *NetServer) GetID() uint64 + func (this *NetServer) GetInConnRecordLen() int + func (this *NetServer) GetIpCountInInConnRecord(ip string) uint + func (this *NetServer) GetMaxPeerBlockHeight() uint64 + func (this *NetServer) GetMsgChan() chan *types.MsgPayload + func (this *NetServer) GetNeighborAddrs() []common.PeerAddr + func (this *NetServer) GetNeighbors() []*peer.Peer + func (this *NetServer) GetNp() *peer.NbrPeers + func (this *NetServer) GetOutConnRecordLen() int + func (this *NetServer) GetOutConnectingListLen() (count uint) + func (this *NetServer) GetPeer(id uint64) *peer.Peer + func (this *NetServer) GetPeerAddressCount() (count uint) + func (this *NetServer) GetPeerFromAddr(addr string) *peer.Peer + func (this *NetServer) GetPort() uint16 + func (this *NetServer) GetRelay() bool + func (this *NetServer) GetServices() uint64 + func (this *NetServer) GetTime() int64 + func (this *NetServer) GetVersion() uint32 + func (this *NetServer) Halt() + func (this *NetServer) IsAddrFromConnecting(addr string) bool + func (this *NetServer) IsAddrInInConnRecord(addr string) bool + func (this *NetServer) IsAddrInOutConnRecord(addr string) bool + func (this *NetServer) IsIPInInConnRecord(ip string) bool + func (this *NetServer) IsNbrPeerAddr(addr string) bool + func (this *NetServer) IsOwnAddress(addr string) bool + func (this *NetServer) IsPeerEstablished(p *peer.Peer) bool + func (this *NetServer) NodeEstablished(id uint64) bool + func (this *NetServer) RemoveFromConnectingList(addr string) + func (this *NetServer) RemoveFromInConnRecord(addr string) + func (this *NetServer) RemoveFromOutConnRecord(addr string) + func (this *NetServer) RemovePeerAddress(addr string) + func (this *NetServer) Send(p *peer.Peer, msg types.Message) error + func (this *NetServer) SetHeight(height uint64) + func (this *NetServer) SetOwnAddress(addr string) + func (this *NetServer) Start() + func (this *NetServer) Xmit(msg types.Message) + type OutConnectionRecord struct + OutConnectingAddrs set.StringSet + type PeerAddrMap struct + PeerAddress map[string]*peer.Peer