mulcon

package
v0.0.0-...-0459e71 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: MIT, GPL-3.0 Imports: 7 Imported by: 0

README

mulcon

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialer

type Dialer func() (net.Conn, error)

type Local

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

func Dial

func Dial(dialer Dialer, n int, method string, password string) (local *Local, err error)

func (*Local) Close

func (l *Local) Close() (err error)

func (*Local) LocalAddr

func (l *Local) LocalAddr() net.Addr

func (*Local) Read

func (l *Local) Read(b []byte) (n int, err error)

func (*Local) ReadFrom

func (l *Local) ReadFrom(b []byte) (n int, addr net.Addr, err error)

func (*Local) RemoteAddr

func (l *Local) RemoteAddr() net.Addr

func (*Local) SetDeadline

func (l *Local) SetDeadline(t time.Time) (err error)

func (*Local) SetReadDeadline

func (l *Local) SetReadDeadline(t time.Time) (err error)

func (*Local) SetWriteDeadline

func (l *Local) SetWriteDeadline(t time.Time) (err error)

func (*Local) Write

func (l *Local) Write(b []byte) (n int, err error)

func (*Local) WriteTo

func (l *Local) WriteTo(b []byte, addr net.Addr) (n int, err error)

type Server

type Server struct {
	net.PacketConn
	// contains filtered or unexported fields
}

func Listen

func Listen(conn net.PacketConn, method string, password string) (server *Server, err error)

func (*Server) Close

func (s *Server) Close() (err error)

func (*Server) ReadFrom

func (s *Server) ReadFrom(b []byte) (n int, addr net.Addr, err error)

func (*Server) SetMixed

func (s *Server) SetMixed(mixed bool)

func (*Server) WriteTo

func (s *Server) WriteTo(b []byte, addr net.Addr) (n int, err error)

Jump to

Keyboard shortcuts

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