|
|
@@ -76,6 +76,8 @@ type Stream interface {
|
|
|
// with the connection. It is equivalent to calling both
|
|
|
// SetReadDeadline and SetWriteDeadline.
|
|
|
SetDeadline(t time.Time) error
|
|
|
+
|
|
|
+ HasMoreData() bool
|
|
|
}
|
|
|
|
|
|
// A ReceiveStream is a unidirectional Receive Stream.
|
|
|
@@ -88,6 +90,8 @@ type ReceiveStream interface {
|
|
|
CancelRead(ErrorCode) error
|
|
|
// see Stream.SetReadDealine
|
|
|
SetReadDeadline(t time.Time) error
|
|
|
+
|
|
|
+ HasMoreData() bool
|
|
|
}
|
|
|
|
|
|
// A SendStream is a unidirectional Send Stream.
|