Closed
Description
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?