1 //go:build cgo && !disable_libutp
2 // +build cgo,!disable_libutp
7 utp "github.com/anacrolix/go-libutp"
10 func NewUtpSocket(network, addr string, fc firewallCallback) (utpSocket, error) {
11 s, err := utp.NewSocket(network, addr)
19 s.SetSyncFirewallCallback(utp.FirewallCallback(fc))