transport

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

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

Go to latest
Published: Feb 21, 2022 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

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

func Accept

func Accept(server *Server) (*Channel, error)

func NewChannel

func NewChannel(conn net.Conn) (*Channel, error)

func (*Channel) Recv

func (ch *Channel) Recv(slot *MessageSlot) error

func (*Channel) Send

func (ch *Channel) Send(slot *MessageSlot) error

type MessageSlot

type MessageSlot struct {
	Message interface{}
	// contains filtered or unexported fields
}

func NewMessageSlot

func NewMessageSlot(message interface{}) *MessageSlot

func (*MessageSlot) Destroy

func (m *MessageSlot) Destroy()

func (*MessageSlot) TakeUnixFd

func (m *MessageSlot) TakeUnixFd(fd int)

type Server

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

func NewServer

func NewServer(listener net.Listener) *Server

type UnixFd

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

func (*UnixFd) Close

func (ufd *UnixFd) Close()

func (UnixFd) IsEmpty

func (ufd UnixFd) IsEmpty() bool

func (UnixFd) PeekFd

func (ufd UnixFd) PeekFd() int

func (*UnixFd) TakeFd

func (ufd *UnixFd) TakeFd() int

Jump to

Keyboard shortcuts

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