linuxrpc

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const RPC = "RPC"

Variables

This section is empty.

Functions

func DetectRPCInfoService

func DetectRPCInfoService(conn net.Conn, lookupResponse *RPCLookup, timeout time.Duration) (bool, error)

Types

type RPCB

type RPCB struct {
	Program  int    `json:"program"`
	Version  int    `json:"version"`
	Protocol string `json:"protocol"`
	Address  string `json:"address"`
	Owner    string `json:"owner"`
}

type RPCLookup

type RPCLookup struct {
	Entries []RPCB `json:"entries"`
}

type RPCPlugin

type RPCPlugin struct{}

func (*RPCPlugin) Name

func (p *RPCPlugin) Name() string

func (*RPCPlugin) PortPriority

func (p *RPCPlugin) PortPriority(i uint16) bool

func (*RPCPlugin) Priority

func (p *RPCPlugin) Priority() int

func (*RPCPlugin) Run

func (p *RPCPlugin) Run(
	conn net.Conn,
	config plugins.PluginConfig,
) (*plugins.PluginResults, error)

func (*RPCPlugin) Type

func (p *RPCPlugin) Type() plugins.Protocol

Jump to

Keyboard shortcuts

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