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) 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()
Click to show internal directories.
Click to hide internal directories.