2
0
mirror of synced 2025-02-23 22:28:11 +00:00
torrent/utp_libutp.go
2017-09-14 00:25:29 +10:00

17 lines
243 B
Go

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