net

package
v0.0.0-...-fc1e718 Latest Latest
Warning

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

Go to latest
Published: May 10, 2017 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupClients

func SetupClients(port int, app *app.StateMachine, clientNet *msgs.ClientNet) error

SetupClients listen for client on the given port, it forwards their requests to the consensus algorithm and then applies them to the state machine SetupClients returns when setup is completed, spawning goroutines to listen for clients.

func SetupPeers

func SetupPeers(localId int, addresses []config.NetAddress, peerNet *msgs.PeerNet, fail *msgs.FailureNotifier) error

SetupPeers is an async function to handle/start peer connections TODO: switch to sync function

Types

This section is empty.

Jump to

Keyboard shortcuts

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