Documentation
¶
Index ¶
- Constants
- func BytesToUint16(array []byte) []uint16
- func Depack(buffer []byte) (flag byte, size int)
- func DepackClip(content []byte) (int, []byte)
- func DepackCmd(content []byte) string
- func EnpackClip(content []byte) (packet []byte)
- func Enpackhead(head byte, stat []byte) []byte
- func Listen() (err error)
- type Conn
- func (c *Conn) AccessGetHash(logger *log.Logger) (hash string)
- func (c *Conn) Close(logger *log.Logger)
- func (c *Conn) GetAddr() string
- func (c *Conn) GetClip(size int) (bool, []byte)
- func (c *Conn) GetLogger() (logger *log.Logger)
- func (c *Conn) RecvCmd(buf []byte) (flag byte, size int)
- func (c *Conn) SendAccess() bool
- func (c *Conn) SendActive() bool
- func (c *Conn) SendClip(clip []byte) bool
- func (c *Conn) SendKeyErr() bool
- func (c *Conn) SendUpdate() bool
- func (c *Conn) SetLogger(logger *log.Logger)
Constants ¶
View Source
const (
PackheadSize = constHeaderLength + constModesizeLength
)
Variables ¶
This section is empty.
Functions ¶
func BytesToUint16 ¶
func DepackClip ¶
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) SendAccess ¶
func (*Conn) SendActive ¶
func (*Conn) SendKeyErr ¶
func (*Conn) SendUpdate ¶
Click to show internal directories.
Click to hide internal directories.