plan9

package
v5.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func New9pServer

func New9pServer(listener net.Listener, exposeDir string) (*Server, error)

Expose a single directory (and all children) via the given net.Listener. Directory given must be an absolute path and must exist.

func (*Server) Stop

func (s *Server) Stop() error

Stop a running server. Please note that this does *BAD THINGS* to clients if they are still running when the server stops. Processes get stuck in I/O deep sleep and zombify, and nothing I do save restarting the VM can remove the zombies.

func (*Server) WaitForError

func (s *Server) WaitForError() error

Wait for an error from a running server.

Jump to

Keyboard shortcuts

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