net

package
v0.0.0-...-b730334 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn interface {
	ReadPacket() (pk.Packet, error)
	WritePacket(p pk.Packet) error
	Close() error
}

type MCListener

type MCListener struct{ net.Listener }

func NewListener

func NewListener(host string, port int) (*MCListener, error)

func (*MCListener) Accept

func (l *MCListener) Accept() (Conn, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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