mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
add missing files
This commit is contained in:
parent
61ad81c326
commit
afba7a45c9
4
vendor/github.com/lucas-clemente/quic-go/interface.go
generated
vendored
4
vendor/github.com/lucas-clemente/quic-go/interface.go
generated
vendored
@ -76,6 +76,8 @@ type Stream interface {
|
|||||||
// with the connection. It is equivalent to calling both
|
// with the connection. It is equivalent to calling both
|
||||||
// SetReadDeadline and SetWriteDeadline.
|
// SetReadDeadline and SetWriteDeadline.
|
||||||
SetDeadline(t time.Time) error
|
SetDeadline(t time.Time) error
|
||||||
|
|
||||||
|
HasMoreData() bool
|
||||||
}
|
}
|
||||||
|
|
||||||
// A ReceiveStream is a unidirectional Receive Stream.
|
// A ReceiveStream is a unidirectional Receive Stream.
|
||||||
@ -88,6 +90,8 @@ type ReceiveStream interface {
|
|||||||
CancelRead(ErrorCode) error
|
CancelRead(ErrorCode) error
|
||||||
// see Stream.SetReadDealine
|
// see Stream.SetReadDealine
|
||||||
SetReadDeadline(t time.Time) error
|
SetReadDeadline(t time.Time) error
|
||||||
|
|
||||||
|
HasMoreData() bool
|
||||||
}
|
}
|
||||||
|
|
||||||
// A SendStream is a unidirectional Send Stream.
|
// A SendStream is a unidirectional Send Stream.
|
||||||
|
7
vendor/github.com/lucas-clemente/quic-go/receive_stream.go
generated
vendored
7
vendor/github.com/lucas-clemente/quic-go/receive_stream.go
generated
vendored
@ -83,6 +83,13 @@ func (s *receiveStream) Read(p []byte) (int, error) {
|
|||||||
return n, err
|
return n, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (s *receiveStream) HasMoreData() bool {
|
||||||
|
s.mutex.Lock()
|
||||||
|
defer s.mutex.Unlock()
|
||||||
|
|
||||||
|
return s.currentFrame != nil
|
||||||
|
}
|
||||||
|
|
||||||
func (s *receiveStream) readImpl(p []byte) (bool /*stream completed */, int, error) {
|
func (s *receiveStream) readImpl(p []byte) (bool /*stream completed */, int, error) {
|
||||||
s.mutex.Lock()
|
s.mutex.Lock()
|
||||||
defer s.mutex.Unlock()
|
defer s.mutex.Unlock()
|
||||||
|
Loading…
Reference in New Issue
Block a user