status-go/vendor/github.com/pion/transport/connctx/pipe.go

12 lines
157 B
Go

package connctx
import (
"net"
)
// Pipe creates piped pair of ConnCtx.
func Pipe() (ConnCtx, ConnCtx) {
ca, cb := net.Pipe()
return New(ca), New(cb)
}