afunix

package
v0.0.0-...-7ab9190 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PassCred

func PassCred(conn *net.UnixConn) error

func PeerCred

func PeerCred(conn *net.UnixConn) (*syscall.Ucred, error)

func RecvFds

func RecvFds(conn *net.UnixConn, p []byte) (int, []int, syscall.Sockaddr, *syscall.Ucred, error)

func Recvmsg

func Recvmsg(conn *net.UnixConn, p, oob []byte, flags int) (n, oobn int, recvflags int, from syscall.Sockaddr, err error)

func SendFds

func SendFds(conn *net.UnixConn, p []byte, fds []int) error

func Sendmsg

func Sendmsg(conn *net.UnixConn, p, oob []byte, to syscall.Sockaddr, flags int) error

Types

type RightsReader

type RightsReader struct {
	*net.UnixConn
	Fds []int
}

func (*RightsReader) Read

func (rr *RightsReader) Read(p []byte) (n int, err error)

type RightsWriter

type RightsWriter struct {
	*net.UnixConn
	Fds []int
}

func (*RightsWriter) Write

func (rw *RightsWriter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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