Skip to content

Bikeshed: name for Socket::new_with_common_flags #111

Closed
@Thomasdezeeuw

Description

@Thomasdezeeuw

Pr #110 changed Socket::new to be a simple call to socket(2), with setting common flags like CLO_EXEC. For convenience we should add back a function which copies the old behaviour. For that function we need a good name. Some possibilities:

  • Socket::new_with_common_flags: too long.
  • Socket::like_std: create a socket like the standard library would?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions