torrent/utp_go.go

17 lines
238 B
Go
Raw Normal View History

2017-06-16 08:08:24 +00:00
// +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
}
2017-06-16 08:08:24 +00:00
}