udp

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2015 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NullByteReceiveStrategy

type NullByteReceiveStrategy struct {
}

func (*NullByteReceiveStrategy) CanReceive

func (s *NullByteReceiveStrategy) CanReceive(message []byte) bool

func (*NullByteReceiveStrategy) Receive

type UdpReceiver

type UdpReceiver struct {
	util.Observable
	// contains filtered or unexported fields
}

func NewUdpReceiver

func NewUdpReceiver(
	host string,
	port int,
	maxPacketSize int,
	receiveStrategy receiver.ReceiveStrategy,
) *UdpReceiver

func (*UdpReceiver) Receive

func (r *UdpReceiver) Receive()

Jump to

Keyboard shortcuts

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