]> Sergey Matveev's repositories - btrtrc.git/blob - utp_libutp.go
Use go-libutp if cgo is enabled
[btrtrc.git] / utp_libutp.go
1 // +build cgo
2
3 package torrent
4
5 import (
6         "github.com/anacrolix/go-libutp"
7 )
8
9 func NewUtpSocket(network, addr string) (utpSocket, error) {
10         return utp.NewSocket(network, addr)
11 }