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

15 lines
259 B
Go
Raw Normal View History

2024-05-15 23:15:00 +00:00
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
2022-03-10 09:44:48 +00:00
package connctx
import (
"net"
)
// Pipe creates piped pair of ConnCtx.
func Pipe() (ConnCtx, ConnCtx) {
ca, cb := net.Pipe()
return New(ca), New(cb)
}