Commit 70dfb639 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent f082b884
......@@ -109,18 +109,3 @@ func pktString(e proto.Encoding, pkt *pktBuf) string {
return s
}
/*
// Dump dumps a packet in raw form.
func (pkt *pktBuf) Dump() string {
// XXX encN-specific
if len(pkt.data) < proto.PktHeaderLenN {
return fmt.Sprintf("(! < pktHeaderLen) % x", pkt.data)
}
h := pkt.Header()
data := pkt.Payload()
return fmt.Sprintf(".%d (%d) #%d [%d]: % x",
packed.Ntoh32(h.ConnId), packed.Ntoh16(h.MsgCode), packed.Ntoh32(h.MsgLen), len(data), data)
}
*/
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