protocol

package
v1.3.22 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PackageLess = iota
	PackageFull
	PackageError
)

Variables

This section is empty.

Functions

func GetMaxPackageLength

func GetMaxPackageLength() int

func KsfRequest

func KsfRequest(rev []byte) (int, int)

func SetMaxPackageLength

func SetMaxPackageLength(len int)

SetMaxPackageLength sets the max length of ksf packet

Types

type KsfProtocol

type KsfProtocol struct{}

func (*KsfProtocol) ParsePackage

func (p *KsfProtocol) ParsePackage(rev []byte) (int, int)

func (*KsfProtocol) RequestPack

func (p *KsfProtocol) RequestPack(req *requestf.RequestPacket) ([]byte, error)

func (*KsfProtocol) ResponseUnpack

func (p *KsfProtocol) ResponseUnpack(pkg []byte) (*requestf.ResponsePacket, error)

Directories

Path Synopsis
res
adminf
Package adminf comment This file was generated by ksf2go 1.1.7 Generated from AdminF.ksf
Package adminf comment This file was generated by ksf2go 1.1.7 Generated from AdminF.ksf
basef
Package basef comment This file was generated by ksf2go 1.1.7 Generated from BaseF.ksf
Package basef comment This file was generated by ksf2go 1.1.7 Generated from BaseF.ksf
configf
Package configf comment This file was generated by ksf2go 1.1.7 Generated from ConfigF.ksf
Package configf comment This file was generated by ksf2go 1.1.7 Generated from ConfigF.ksf
endpointf
Package endpointf comment This file was generated by ksf2go 1.1.7 Generated from EndpointF.ksf
Package endpointf comment This file was generated by ksf2go 1.1.7 Generated from EndpointF.ksf
logf
Package logf comment This file was generated by ksf2go 1.1.7 Generated from LogF.ksf
Package logf comment This file was generated by ksf2go 1.1.7 Generated from LogF.ksf
nodef
Package nodef comment This file was generated by ksf2go 1.1.7 Generated from NodeF.ksf
Package nodef comment This file was generated by ksf2go 1.1.7 Generated from NodeF.ksf
notifyf
Package notifyf comment This file was generated by ksf2go 1.1.7 Generated from NotifyF.ksf
Package notifyf comment This file was generated by ksf2go 1.1.7 Generated from NotifyF.ksf
propertyf
Package propertyf comment This file was generated by ksf2go 1.1.7 Generated from PropertyF.ksf
Package propertyf comment This file was generated by ksf2go 1.1.7 Generated from PropertyF.ksf
queryf
Package queryf comment This file was generated by ksf2go 1.1.7 Generated from QueryF.ksf
Package queryf comment This file was generated by ksf2go 1.1.7 Generated from QueryF.ksf
requestf
Package requestf comment This file was generated by ksf2go 1.1.7 Generated from RequestF.ksf
Package requestf comment This file was generated by ksf2go 1.1.7 Generated from RequestF.ksf
statf
Package statf comment This file was generated by ksf2go 1.1.7 Generated from StatF.ksf
Package statf comment This file was generated by ksf2go 1.1.7 Generated from StatF.ksf

Jump to

Keyboard shortcuts

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