sockopts_wasm.go 398 B

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