ppp

package
v0.0.0-...-c5474ca Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: GPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PPPTypeIPX layers.PPPType = 0x002b
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

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

func NewSession

func NewSession(channel io.ReadWriteCloser, node network.Node) *Session

func (*Session) Close

func (s *Session) Close() error

func (*Session) Run

func (s *Session) Run(ctx context.Context) error

Run implements the main goroutine that establishes the PPP connection, does negotiation and then runs the main loop that receives PPP frames and forwards the encapsulated IPX frames upstream. When it returns, the session has terminated (either normally or due to failure to negotiate).

func (*Session) Terminate

func (s *Session) Terminate(err error)

Terminate initiates the link shutdown process by sending a Terminate-Request to the client and then calling Close().

func (*Session) Terminated

func (s *Session) Terminated() bool

Directories

Path Synopsis
Package lcp contains a gopacket Layer that implements the PPP Link Control Protocol (LCP).
Package lcp contains a gopacket Layer that implements the PPP Link Control Protocol (LCP).
Package pptp contains an implementation of a PPTP VPN server that is specifically intended to allow IPX protocol games to be played from old Windows 9x machines.
Package pptp contains an implementation of a PPTP VPN server that is specifically intended to allow IPX protocol games to be played from old Windows 9x machines.

Jump to

Keyboard shortcuts

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