Cloak/internal/multiplex/recvBuffer.go

14 lines
227 B
Go
Raw Normal View History

package multiplex
2020-04-09 17:56:17 +00:00
import (
"io"
"time"
)
type recvBuffer interface {
2020-04-08 13:59:09 +00:00
// Read calls' err must be nil | io.EOF | io.ErrShortBuffer
io.ReadCloser
Write(Frame) (toBeClosed bool, err error)
2020-04-09 17:56:17 +00:00
SetReadDeadline(time time.Time)
}