Comment

Comment by heinrichhartman

Am I the only one who finds this

    int yes=1;
    setsockopt(listener, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof (yes)) ;
much cleaner than this

    setsockopt(listener, SOL_SOCKET, SO_REUSEADDR, &(int) {1}, sizeof(int));

?

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton