Skip to content

handle non-integer flags #1

@derhuerst

Description

@derhuerst

From

node-sockopt/index.js

Lines 21 to 25 in 19410b3

// Currently _setsockopt (& _getsockopt) only handles integers.
// todo: fails with e.g. SO_RCVTIMEO/SO_SNDTIMEO, see #1
if (!Number.isInteger(flagValue)) {
throw new Error('flagValue must be an integer')
}
:

Currently _setsockopt (& _getsockopt) only handles integers.
todo: fails with e.g. SO_RCVTIMEO/SO_SNDTIMEO

if (!Number.isInteger(flagValue)) {
	throw new Error('flagValue must be an integer')
}

The native code would have to be adapted to create the appropriate structs for selected flags.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions