transport

package
v0.0.0-...-4728dbd Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2018 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TransportChannel

type TransportChannel interface {
	Close() error
	SendPacket(pkt []byte, client TransportChannelClientID)
	ReceivePacket() ([]byte, TransportChannelClientID)
}

func NewUDP

func NewUDP(Net, ServerAddress string) (TransportChannel, error)

type TransportChannelClientID

type TransportChannelClientID interface{}

20 bytes is enough for ipv6 + port

Jump to

Keyboard shortcuts

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