package
0.0.0-20191113032148-3606b63ab30f
Repository: https://github.com/phenixchain/devchain.git
Documentation: pkg.go.dev

# Packages

Package nat provides access to common network port mapping protocols.

# Functions

DefaultMConnConfig returns the default config.
New produce a p2p object.
NewAddrBook create a addrbook.
NewDownloadJob create a downloadjob object.
NewFilter produce a filter object.
NewMConnection wraps net.Conn and creates multiplex connection.
NewMConnectionWithConfig return mconn by mconnconfig.
NewNetAddress returns a new NetAddress using the provided TCP address.
NewNetAddressIPPort returns a new NetAddress using the provided IP and port number.
NewNetAddressString returns a new NetAddress using the provided address in the form of "IP:Port".
NewNetAddressStrings returns an array of NetAddress'es build using the provided strings.
NewNode produce a node object.
NewNodeInfo new a node object.
NewNormalP2PCli produce a normal client.
NewP2PCli produce a p2p client.
NewP2pServer produce a p2pserver.
NewPeer produce a peer object.
NewTemMConnConfig return the config by grpc.clientconn, gcli.

# Constants

P2pCacheTxSize p2pcache size of transaction.
P2pCacheTxSize p2pcache size of transaction.
TTL.
TTL.
P2pCacheTxSize p2pcache size of transaction.
P2pCacheTxSize p2pcache size of transaction.
Service service number.
接收的交易哈希过滤缓存设为mempool最大接收交易量.
发送过滤主要用于发送时冗余检测, 发送完即可以被删除, 维护较小缓存数.
VERSION number.

# Variables

time limit for timeout.
time limit for timeout.
time limit for timeout.
time limit for timeout.
time limit for timeout.
time limit for timeout.
time limit for timeout.
time limit for timeout.
MainNetSeeds built-in list of seed.
time limit for timeout.
time limit for timeout.
time limit for timeout.
P2pComm p2p communication.
time limit for timeout.
time limit for timeout.
TestNetSeeds test seeds of net.
time limit for timeout.

# Structs

AddrBook peer address manager.
BlackList badpeers list.
Cli p2p client.
Comm information.
DownloadJob defines download job type.
Filterdata filter data attribute.
KnownAddress defines known address type.
MConnConfig is a MConnection configuration.
MConnection contains node, grpc client, p2pgserviceClient, netaddress, peer.
NetAddress defines information about a peer on the network including its IP address, and port.
Node attribute.
NodeInfo is interface object of the node.
P2p interface.
P2pserver object information.
Peer object information.
PeerInfos encapsulation peer information.
Stat object information.
Version version object information.

# Interfaces

EventInterface p2p subscribe to the event hander interface.
Listener the actions.
NormalInterface subscribe to the event hander interface.

# Type aliases

Invs datastruct.