unixsocket

package
v0.0.0-...-fd09ffd Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

package unsock

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UnixSocket

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

func NewUnixSocket

func NewUnixSocket(filename string, size ...int) *UnixSocket

func (*UnixSocket) ClientSendContext

func (this *UnixSocket) ClientSendContext(context string) string

客户端

func (*UnixSocket) HandleServerConn

func (this *UnixSocket) HandleServerConn(c net.Conn)

接收连接并处理

func (*UnixSocket) HandleServerContext

func (this *UnixSocket) HandleServerContext(context string) string

接收内容并返回结果

func (*UnixSocket) SetContextHandler

func (this *UnixSocket) SetContextHandler(f func(string) string)

func (*UnixSocket) StartServer

func (this *UnixSocket) StartServer()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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