Commit 722d6744 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 5ad5b2a4
...@@ -455,6 +455,7 @@ func (zl *zLink) xuint64Unpack(xv interface{}) (uint64, bool) { ...@@ -455,6 +455,7 @@ func (zl *zLink) xuint64Unpack(xv interface{}) (uint64, bool) {
// xuint64Pack packs v into big-endian 8-byte string // xuint64Pack packs v into big-endian 8-byte string
// //
// XXX do we need to emit bytes instead of str? // XXX do we need to emit bytes instead of str?
// XXX adapt to msgpack?
func xuint64Pack(v uint64) string { func xuint64Pack(v uint64) string {
var b [8]byte var b [8]byte
binary.BigEndian.PutUint64(b[:], v) binary.BigEndian.PutUint64(b[:], v)
......
...@@ -141,6 +141,7 @@ func (zl *zLink) serveRecv() { ...@@ -141,6 +141,7 @@ func (zl *zLink) serveRecv() {
// serveRecv1 handles 1 incoming packet. // serveRecv1 handles 1 incoming packet.
func (zl *zLink) serveRecv1(pkb *pktBuf) error { func (zl *zLink) serveRecv1(pkb *pktBuf) error {
fmt.Printf("RXgo: %q\n", pkb.Payload())
// decode packet // decode packet
m, err := zl.pktDecode(pkb) m, err := zl.pktDecode(pkb)
if err != nil { if err != nil {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment