tcp

package
v0.0.0-...-bc3f6f8 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Network

type Network struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Network implements the handel.Network interface using TCP connections

func NewNetwork

func NewNetwork(listen string, enc network.Encoding) (*Network, error)

NewNetwork returns a TCP Network that listens to the given address.

func (*Network) RegisterListener

func (n *Network) RegisterListener(listener h.Listener)

RegisterListener implements the h.Network interface

func (*Network) Send

func (n *Network) Send(ids []h.Identity, packet *h.Packet)

Send implements the handel.Network interface

func (*Network) Stop

func (n *Network) Stop()

Stop the listener

Jump to

Keyboard shortcuts

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