Simon Tatham
5b5904b7cc
windows/network.c: refactor switch in sk_newlistener.
...
The code that diverges based on the address family is now in the form
of a switch statement, rather than an unwieldy series of chained ifs.
And the final call to bind() has all its arguments worked out in the
previous switch, rather than computing them at the last minute with an
equally unwieldy set of ?: operators that repeat the previous test.
This will make it easier to add more cases, and also, to keep each
case under its own ifdef without losing too much legibility.
2022-02-04 19:26:25 +00:00
..
2022-01-15 18:27:19 +00:00
2022-01-03 12:12:05 +00:00
2021-05-24 15:27:38 +01:00
2022-01-15 18:27:19 +00:00
2022-01-22 15:51:31 +00:00
2021-10-30 17:28:28 +01:00
2022-01-22 15:51:31 +00:00
2022-01-22 15:51:31 +00:00
2021-04-26 18:00:01 +01:00
2022-01-22 15:51:31 +00:00
2021-07-01 18:59:44 +01:00
2022-01-22 15:51:31 +00:00
2022-01-22 15:51:31 +00:00
2021-05-27 09:48:32 +01:00
2022-01-22 15:51:31 +00:00
2021-10-18 20:15:35 +01:00
2021-04-26 18:00:01 +01:00
2021-05-03 17:01:55 +01:00
2022-01-22 15:51:31 +00:00
2022-01-22 15:51:31 +00:00
2020-06-21 16:39:47 +01:00
2020-06-21 16:39:47 +01:00
2022-01-22 15:51:31 +00:00
2021-10-30 17:29:24 +01:00
2022-02-04 19:26:25 +00:00
2022-01-22 15:51:31 +00:00
2022-01-22 15:51:31 +00:00
2021-04-26 18:00:01 +01:00
2021-04-22 20:00:46 +01:00
2022-01-22 15:51:31 +00:00
2007-01-07 10:17:12 +00:00
2019-09-08 20:29:21 +01:00
2021-04-26 18:00:01 +01:00
2007-01-07 10:17:12 +00:00
2022-01-22 15:51:31 +00:00
2021-12-28 18:08:31 +00:00
2005-10-04 14:13:28 +00:00
2021-04-26 18:00:01 +01:00
2007-01-07 10:17:12 +00:00
2005-10-04 14:13:28 +00:00
2005-10-04 14:13:28 +00:00
2021-04-26 18:00:01 +01:00
2021-10-18 20:15:35 +01:00
2021-05-08 17:33:25 +01:00
2021-05-08 17:51:27 +01:00
2021-05-08 17:33:25 +01:00
2021-09-16 14:33:59 +01:00
2021-09-16 14:33:59 +01:00
2021-05-08 17:20:50 +01:00
2007-01-07 10:17:12 +00:00
2021-04-02 19:04:19 +01:00
2021-05-08 17:33:25 +01:00
2007-01-07 10:17:12 +00:00
2021-02-23 18:26:50 +00:00
2022-01-15 18:54:07 +00:00
2007-01-07 10:17:12 +00:00
2019-09-08 20:29:21 +01:00
2021-04-26 18:00:01 +01:00
2007-02-06 22:39:15 +00:00
2021-04-02 19:04:19 +01:00
2021-05-08 17:33:25 +01:00
2021-04-17 13:53:02 +01:00
2019-03-18 21:53:45 +00:00
2022-01-22 15:51:31 +00:00
2022-01-22 15:51:31 +00:00
2022-01-22 15:51:31 +00:00
2021-10-30 17:28:28 +01:00
2022-01-22 15:51:31 +00:00
2022-01-03 12:12:05 +00:00
2020-02-16 11:26:21 +00:00
2022-01-22 15:51:31 +00:00
2021-04-26 18:00:01 +01:00
2019-03-18 22:02:13 +00:00
2017-05-07 16:29:01 +01:00
2022-01-22 15:51:31 +00:00
2022-01-08 14:04:51 +00:00
2022-01-22 15:51:31 +00:00