github.com/anacrolix/torrent@v1.61.0/sockopts_wasm.go (about)

     1  package torrent
     2  
     3  // It's possible that we either need to use JS-specific way to allow port reuse, or to fall back to
     4  // dialling TCP without forcing the local address to match the listener. If the fallback is
     5  // implemented, then this should probably return an error to trigger it.
     6  func setReusePortSockOpts(fd uintptr) error {
     7  	return nil
     8  }
     9  
    10  func setSockNoLinger(fd uintptr) error {
    11  	return nil
    12  }
    13  
    14  func setSockIPTOS(fd uintptr, val int) (err error) {
    15  	return nil
    16  }