Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProxyStreams ¶
func ProxyStreams(s1, s2 io.ReadWriteCloser, cb func())
ProxyStreams constructs read/write pumps to proxy two streams. if either stream is closed, the other will be closed. The two routines will exit when the streams are closed. Cb will be called if either of the streams close, and will be called twice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.