receiver

package
v0.0.0-...-178a051 Latest Latest
Warning

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

Go to latest
Published: May 5, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package receiver implements the udp Receiver interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Receiver

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

Receiver retains information about the running peer.

func New

func New(peer *peer.Peer) *Receiver

New returns a pointer to a Receiver.

func (*Receiver) Receive

func (r *Receiver) Receive(ch chan *packet.PeerPacket) error

Receive receives packets from the network, turns it into a packet.Packet type, and then sends it through the provided channel.

Jump to

Keyboard shortcuts

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