Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NoOpHandler = func(s Stream) { s.Close() }
NoOpHandler do nothing. close streams as soon as they are opened.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn interface { io.Closer // IsClosed returns whether a connection is fully closed, so it can // be garbage collected. IsClosed() bool // OpenStream creates a new stream. OpenStream() (Stream, error) // AcceptStream accepts a stream opened by the other side. AcceptStream() (Stream, error) }
Conn is a stream-multiplexing connection to a remote peer.
Click to show internal directories.
Click to hide internal directories.