Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type P2pNetwork ¶
type P2pNetwork interface { BroadCast(v interface{}) error SendToNode(nodeID int64, v interface{}) error }
func NewSimpleP2pLib ¶
func NewSimpleP2pLib(id int64, msgChan chan<- *message.ConMessage) P2pNetwork
type SimpleP2p ¶
type SimpleP2p struct { SrvBub *net.TCPListener Peers map[string]*net.TCPConn MsgChan chan<- *message.ConMessage }
func (*SimpleP2p) SendToNode ¶
Click to show internal directories.
Click to hide internal directories.