Documentation ¶
Index ¶
Constants ¶
View Source
const ( // port for RPC DefaultRPCPort = 8915 // port for query and register meycoinsvr DefaultSrvPort = 8916 )
View Source
const ( WezenMapSub core.ProtocolID = "/wezen/0.1" WezenPingSub core.ProtocolID = "/ping/0.1" )
subprotocol for wezen
View Source
const ( MapQuery p2pcommon.SubProtocol = 0x0100 + iota MapResponse )
View Source
const (
TooOldVersionMsg = "too old version"
)
Additional messages of wezen response
View Source
const WezenConnectionTTL = time.Second * 30
Variables ¶
View Source
var ( // 89.16 is ceiling of declination of Wezen MainnetMapServer = []string{ "/dns4/mainnet-wezen.meycoin.io/tcp/8916/p2p/16Uiu2HAkuxyDkMTQTGFpmnex2SdfTVzYfPztTyK339rqUdsv3ZUa", } // 89.16 is ceiling of declination of Wezen TestnetMapServer = []string{ "/dns4/wezen.meycoin.io/tcp/8916/p2p/16Uiu2HAkvJTHFuJXxr15rFEHsJWnyn1QvGatW2E9ED9Mvy4HWjVF", } // Hardcoded chainID of ONE MAINNET and ONE TESTNET ONEMainNet types.ChainID ONETestNet types.ChainID )
Functions ¶
This section is empty.
Types ¶
type WezenMessage ¶
type WezenMessage struct {
// contains filtered or unexported fields
}
WezenMessage is data struct for transferring between wezen server and client. as of 2019.04.23, this is copy of MessageValue.
func NewWezenMessage ¶
func NewWezenMessage(msgID p2pcommon.MsgID, protocol p2pcommon.SubProtocol, payload []byte) *WezenMessage
NewWezenMessage create a new object
func NewWezenRespMessage ¶
func NewWezenRespMessage(msgID, orgReqID p2pcommon.MsgID, protocol p2pcommon.SubProtocol, payload []byte) *WezenMessage
func (*WezenMessage) ID ¶
func (m *WezenMessage) ID() p2pcommon.MsgID
func (*WezenMessage) Length ¶
func (m *WezenMessage) Length() uint32
func (*WezenMessage) OriginalID ¶
func (m *WezenMessage) OriginalID() p2pcommon.MsgID
func (*WezenMessage) Payload ¶
func (m *WezenMessage) Payload() []byte
func (*WezenMessage) Subprotocol ¶
func (m *WezenMessage) Subprotocol() p2pcommon.SubProtocol
func (*WezenMessage) Timestamp ¶
func (m *WezenMessage) Timestamp() int64
Click to show internal directories.
Click to hide internal directories.