go-libp2p-core/helpers
Steven Allen d6afc690e1
add CloseRead/CloseWrite on streams (#166)
* add CloseRead/CloseWrite on streams

This changes the behavior of `Close` to behave as one would expect: it closes
the stream. The new methods, CloseWrite/CloseRead allow for closing the stream in
a single direction.

Note: This _does not_ implement CancelWrite/CancelRead as our stream muxer
_protocols_ don't support that.

fixes #9

* remove stream util helpers

FullClose and AwaitEOF were introduced to work around the fact that calling
Close on a stream only closed the write half. All users must adapt their code
to the new interfaces, so this change is intentionally breaking.
2020-09-01 17:29:54 -07:00
..
match_test.go Absorb go-libp2p abstractions and core types into this module (#1) 2019-05-22 18:31:11 +01:00
match.go Absorb go-libp2p abstractions and core types into this module (#1) 2019-05-22 18:31:11 +01:00