YTSFlix_Go/vendor/github.com/anacrolix/torrent/utp_go.go
2018-11-04 15:58:15 +01:00

17 lines
273 B
Go

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