Browse Source

增加客户端日志输出

tags/v1.8 v1.8
wangjian 1 year ago
parent
commit
b109c53056
  1. 2
      handler_type.go

2
handler_type.go

@ -3,7 +3,7 @@ package network
import "git.hpds.cc/Component/network/frame"
// AsyncHandler is the request-response mode (async)
type AsyncHandler func([]byte) (byte, []byte)
type AsyncHandler func([]byte) (frame.Tag, []byte)
// PipeHandler is the bidirectional stream mode (blocking).
type PipeHandler func(in <-chan []byte, out chan<- *frame.PayloadFrame)

Loading…
Cancel
Save