Versions in this module Expand all Collapse all v0 v0.7.11 Dec 24, 2014 v0.7.10 Dec 21, 2014 Changes in this version + const MsgBlockHashesTy + const MsgBlockTy + const MsgDiscTy + const MsgGetBlockHashesTy + const MsgGetBlocksTy + const MsgGetPeersTy + const MsgHandshakeTy + const MsgNewBlockTy + const MsgPeersTy + const MsgPingTy + const MsgPongTy + const MsgStatusTy + const MsgTxTy + var MagicToken = []byte + func WriteMessage(conn net.Conn, msg *Msg) error + type ClientIdentity interface + String func() string + type Conn interface + Read func() *Msg + Write func(typ MsgType, v ...interface{}) error + type Connection struct + func New(conn net.Conn) *Connection + func (self *Connection) Read() *Msg + func (self *Connection) Write(typ MsgType, v ...interface{}) error + type Messages []*Msg + type Msg struct + Data *ethutil.Value + Type MsgType + func NewMessage(msgType MsgType, data interface{}) *Msg + func ReadMessage(data []byte) (msg *Msg, remaining []byte, done bool, err error) + func ReadMessages(conn net.Conn) (msgs []*Msg, err error) + type MsgType byte + func (mt MsgType) String() string + type SimpleClientIdentity struct + func NewSimpleClientIdentity(clientIdentifier string, version string, customIdentifier string) *SimpleClientIdentity + func (c *SimpleClientIdentity) GetCustomIdentifier() string + func (c *SimpleClientIdentity) SetCustomIdentifier(customIdentifier string) + func (c *SimpleClientIdentity) String() string