2
0
mirror of synced 2025-02-24 14:48:27 +00:00
torrent/utp_go.go

17 lines
273 B
Go
Raw Normal View History

// +build !cgo disable_libutp
2017-06-16 18:08:24 +10:00
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
}
2017-06-16 18:08:24 +10:00
}