moar comments. Add a done callback to DefaultInterface return values.

This commit is contained in:
Sebastian Zagrodzki
2017-05-06 02:30:16 +02:00
parent c6b9a04e9f
commit 86c8e27edf
5 changed files with 26 additions and 8 deletions

View File

@@ -105,6 +105,9 @@ func (e *endpoint) transfer(buf []byte) (int, error) {
}
// InEndpoint represents an IN endpoint open for transfer.
// InEndpoint implements the io.Reader interface.
// For high-throughput transfers, consider creating a bufffered read stream
// through InEndpoint.ReadStream.
type InEndpoint struct {
*endpoint
}