Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HistDecoder ¶
HistDecoder decodes game history.
func HistEncode ¶
HistEncode encodes game history.
func PokeClient ¶
func PokeClient(clientAdr, myAddr string)
PokeClient poke the client with address to signal it is ready.
func PokeListener ¶
PokeListener listen for pokes and send them on. Create listner with ln, err := net.Listen("tcp", clientAddr) stop with ln.Close() should be called in a goroutine.
Types ¶
type Receiver ¶
type Receiver struct { HistCh chan []byte // contains filtered or unexported fields }
Receiver a zmq receiver of game histories.
func NewReceiver ¶
NewReceiver creates a zmq receiver of game histories.
Click to show internal directories.
Click to hide internal directories.