vibe.de multiple ports.
Adam D. Ruppe
destructionator at gmail.com
Wed Sep 30 12:46:26 UTC 2020
On Wednesday, 30 September 2020 at 11:23:59 UTC, seany wrote:
> auto router = new URLRouter;
> router.post("/archive", &savedata);
> router.get("/archive", &savedata);
>
> auto settings = new HTTPServerSettings;
> settings.port = port;
> settings.bindAddresses = ["::1", "0.0.0.0"];
> 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
running.
(I think, I don't really know vibe super well)
More information about the Digitalmars-d-learn
mailing list