2
0
mirror of synced 2025-02-24 06:38:14 +00:00
torrent/utp_go.go
2017-09-14 00:25:29 +10:00

17 lines
238 B
Go

// +build !cgo
package torrent
import (
"github.com/anacrolix/utp"
)
func NewUtpSocket(network, addr string) (utpSocket, error) {
s, err := utp.NewSocket(network, addr)
if s == nil {
return nil, err
} else {
return s, err
}
}