YTSFlix_Go/vendor/github.com/anacrolix/torrent/utp_go.go

17 lines
273 B
Go
Raw Normal View History

2018-11-04 14:58:15 +00:00
// +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
}
}