Řešení:
static const int flag = true; setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &flag, sizeof(flag));
Zpět do poradny