relay

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2014 License: GPL-3.0-or-later Imports: 13 Imported by: 0

Documentation

Overview

Package relay implements the message relay between the Iris node and locally attached applications.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Relay

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

Relay service, listening on a local TCP port and accepting connections for joining the Iris network.

func New

func New(port int, overlay *iris.Overlay) (*Relay, error)

Creates a new relay attached to a carrier and opens the listener socket on the specified local port.

func (*Relay) Boot

func (r *Relay) Boot() error

Starts accepting local relay connections.

func (*Relay) Terminate

func (r *Relay) Terminate() error

Closes all open connections and terminates the relaying service.

Jump to

Keyboard shortcuts

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