github.com/GeniusesGroup/libgo@v0.0.0-20220929090155-5ff932cb408e/srpc/frame-signature.go (about) 1 /* For license and copyright information please see LEGAL file in repository */ 2 3 package srpc 4 5 import ( 6 "../protocol" 7 "../syllab" 8 ) 9 10 /* 11 type signatureFrame struct { 12 Length [2]byte // including the header fields 13 StreamID [4]byte // uint32 14 Signature []byte 15 } 16 */ 17 type signatureFrame []byte 18 19 func (f signatureFrame) ID() int64 { return syllab.GetInt64(f, 0) } 20 func (f signatureFrame) NextFrame() []byte { return f[8:] } 21 22 func registerStreamSignature(conn protocol.Connection, frame signatureFrame) (err protocol.Error) { 23 return 24 }