Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const setsockopt = (fd, level, name, value, valueLength) => {
const err = ffi.setsockopt(fd, level, name, value, valueLength)
if (err !== 0) {
let errno = FFI.errno()
throw Commons.errnoException(errno, 'setsockopt')
}
return true
}