intface

package
v0.0.0-...-fd4faf2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2016 License: BSD-2-Clause, MIT Imports: 6 Imported by: 0

Documentation

Overview

Interface class for Chapter 8. This implements an "interface" to our network of nodes.

Index

Constants

View Source
const (
	PING_PORT_NUMBER = 9999
	PING_INTERVAL    = 1000 * time.Millisecond //  Once per second
	PEER_EXPIRY      = 5000 * time.Millisecond //  Five seconds and it's gone
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Intface

type Intface struct {
	// contains filtered or unexported fields
}

func New

func New() (iface *Intface)

func (*Intface) Recv

func (iface *Intface) Recv() (msg []string, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL