parse_socktype
if (!parse_socktype(optarg, &hints.ai_socktype)) {
static bool parse_socktype(const char *, int *);