Re: My simple internet client made in Dlang.

2021-02-04 Thread Max Haughton via Digitalmars-d-learn
On Thursday, 4 February 2021 at 20:54:15 UTC, Ali Çehreli wrote: On 2/3/21 8:44 AM, Marcone wrote: [...] I think the following would be improvements: >[...] I don't know the protocol but obviously 8192 must be sufficient. [...] Less calls to std.conv can also mean less surface area fo

Re: My simple internet client made in Dlang.

2021-02-04 Thread Ali Çehreli via Digitalmars-d-learn
On 2/3/21 8:44 AM, Marcone wrote: relevant opinion I think the following would be improvements: >char[8192] request; I don't know the protocol but obviously 8192 must be sufficient. >auto rq = c.receive(request); So, what is actually received is request[0..rq]. I would call the firs

My simple internet client made in Dlang.

2021-02-03 Thread Marcone via Digitalmars-d-learn
I study Dlang for just over a year only and have already risked creating a program even with a graphical interface and distribute it on the internet. Here is a part of that program, just the code without a graphical interface. It is a program for modifying http headers. You connect your program