unix

package
v0.0.0-...-8ab58c1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const (
	CREATE_POLL_REQUEST pollActionType = iota
	DELETE_POLL_REQUEST
)

Variables

This section is empty.

Functions

func Connect

func Connect(addr string) (*net.UnixConn, error)

func RecvSeccompInitAckMsg

func RecvSeccompInitAckMsg(c *net.UnixConn) error

func RecvSeccompInitMsg

func RecvSeccompInitMsg(c *net.UnixConn) (int32, string, int32, error)

func SendSeccompInitAckMsg

func SendSeccompInitAckMsg(c *net.UnixConn) error

func SendSeccompInitMsg

func SendSeccompInitMsg(
	c *net.UnixConn, pid int32, cntrId string, fd int32) error

Types

type PollServer

type PollServer struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

General pollserver struct.

func NewPollServer

func NewPollServer() (*PollServer, error)

func (*PollServer) StartWaitRead

func (ps *PollServer) StartWaitRead(fd int32) error

func (*PollServer) StartWaitWrite

func (ps *PollServer) StartWaitWrite(fd int32) error

func (*PollServer) StopWait

func (ps *PollServer) StopWait(fd int32) error

type Server

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

func NewServer

func NewServer(addr string, handler func(*net.UnixConn)) (*Server, error)

NewServer constructs a unix-server to handle inbound connections made to the 'addr' unix-socket. Upon establishment, the connection will be handled by the 'func' closure passed as parameter.

Jump to

Keyboard shortcuts

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