PHP to D Conversion
Andre Pany
andre at s-e-a-p.de
Fri Oct 18 14:56:05 UTC 2019
On Friday, 18 October 2019 at 09:21:46 UTC, Vino wrote:
> On Friday, 18 October 2019 at 09:17:24 UTC, Vino wrote:
>> On Friday, 18 October 2019 at 09:11:18 UTC, Vino wrote:
>>> [...]
>>
>> App.d
>>
>> import vibe.vibe;
>> import avm.test;
>>
>> void main()
>> {
>> auto settings = new HTTPServerSettings;
>> settings.port = 8080;
>> settings.bindAddresses = ["127.0.0.1"];
>> listenHTTP(settings, &hello);
>>
>> logInfo("Please open http://127.0.0.1:8080/ in your
>> browser.");
>> runApplication();
>> }
>>
>> void hello(HTTPServerRequest req, HTTPServerResponse res)
>> {
>> test t = new avmtest();
>> res.writeBody(t.getHostname);
>> }
>
> And now getting the error : Program exited with code -1073741819
Hi,
Maybe port 8080 is blocked, because there is an instance of your
application running on the background. Just check by changing the
port in the source code.
Kind regards
Andre
More information about the Digitalmars-d-learn
mailing list