multiple ports.

Adam D. Ruppe destructionator at
Wed Sep 30 12:46:26 UTC 2020

On Wednesday, 30 September 2020 at 11:23:59 UTC, seany wrote:

>         auto router = new URLRouter;
>"/archive", &savedata);
>         router.get("/archive", &savedata);
>         auto settings = new HTTPServerSettings;
>         settings.port = port;
>         settings.bindAddresses = ["::1", ""];
>         listenHTTP(settings, router);

If you loop this section it should listen to each port. This is 
just a setup loop, it wouldn't actually be wasteful once it is 

(I think, I don't really know vibe super well)

More information about the Digitalmars-d-learn mailing list