udp

package
v1.23.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection added in v1.17.1

type Connection struct {
	net.UDPConn
}

func (*Connection) Reusable added in v1.17.1

func (this *Connection) Reusable() bool

func (*Connection) SetReusable added in v1.17.1

func (this *Connection) SetReusable(b bool)

type TimedInboundRay added in v1.17.1

type TimedInboundRay struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewTimedInboundRay added in v1.17.1

func NewTimedInboundRay(name string, inboundRay ray.InboundRay, server *UDPServer) *TimedInboundRay

func (*TimedInboundRay) InboundInput added in v1.17.1

func (this *TimedInboundRay) InboundInput() ray.OutputStream

func (*TimedInboundRay) InboundOutput added in v1.17.1

func (this *TimedInboundRay) InboundOutput() ray.InputStream

func (*TimedInboundRay) Monitor added in v1.17.1

func (this *TimedInboundRay) Monitor()

func (*TimedInboundRay) Release added in v1.17.1

func (this *TimedInboundRay) Release()

type UDPHub added in v1.17.1

type UDPHub struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func ListenUDP

func ListenUDP(address v2net.Address, port v2net.Port, callback UDPPayloadHandler) (*UDPHub, error)

func (*UDPHub) Close added in v1.17.1

func (this *UDPHub) Close()

func (*UDPHub) Running added in v1.21.1

func (this *UDPHub) Running() bool

func (*UDPHub) WriteTo added in v1.17.1

func (this *UDPHub) WriteTo(payload []byte, dest v2net.Destination) (int, error)

type UDPPayloadHandler added in v1.17.1

type UDPPayloadHandler func(*alloc.Buffer, v2net.Destination)

type UDPResponseCallback added in v1.17.1

type UDPResponseCallback func(destination v2net.Destination, payload *alloc.Buffer)

type UDPServer added in v1.17.1

type UDPServer struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewUDPServer added in v1.17.1

func NewUDPServer(packetDispatcher dispatcher.PacketDispatcher) *UDPServer

func (*UDPServer) Dispatch added in v1.17.1

func (this *UDPServer) Dispatch(source v2net.Destination, destination v2net.Destination, payload *alloc.Buffer, callback UDPResponseCallback)

func (*UDPServer) RemoveRay added in v1.17.1

func (this *UDPServer) RemoveRay(name string)

Jump to

Keyboard shortcuts

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