internal

package
v0.0.0-...-079dddc Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DialPlex

func DialPlex(network, address string, b byte) (net.Conn, error)

func ReadHeader

func ReadHeader(r io.Reader, x proto.Message) error

ReadHeader read the proto message from the reader.

func WriteHeader

func WriteHeader(w io.Writer, x proto.Message) error

WriteHeader writes the proto message to the writer.

Types

type ListenPlex

type ListenPlex struct {
	net.Listener
	// contains filtered or unexported fields
}

func NewListenPlex

func NewListenPlex(l net.Listener) *ListenPlex

func (*ListenPlex) NewListener

func (l *ListenPlex) NewListener(prefix byte) net.Listener

NewListener creates a listener that will accept connections with the specified byte prefix.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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