uds

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const SocketAddr = "/tmp/echo.sock"

Variables

This section is empty.

Functions

func ListenAndServe

func ListenAndServe()

Types

type RecvData

type RecvData struct {
	Timestamp int `json:"timestamp"`
	Delay     int `json:"delay"`
	Key       int `json:"key"`
}

type UDS

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

func NewUDS

func NewUDS(sockFile string, size ...int) *UDS

func (*UDS) ClientSendContext

func (u *UDS) ClientSendContext(context string) string

func (*UDS) HandleServerConn

func (u *UDS) HandleServerConn(conn net.Conn)

func (*UDS) HandleServerContext

func (u *UDS) HandleServerContext(context string) string

func (*UDS) ListenAndServe

func (u *UDS) ListenAndServe()

func (*UDS) SetContextHandler

func (u *UDS) SetContextHandler(f func(string) string)

func (*UDS) StartServer

func (u *UDS) StartServer()

Jump to

Keyboard shortcuts

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