Re: [fpc-pascal] netdb, DNS and TCP

2020-10-12 Thread Michael Van Canneyt via fpc-pascal
On Mon, 12 Oct 2020, Noel Duffy via fpc-pascal wrote: On 11/10/20 9:42 pm, Michael Van Canneyt via fpc-pascal wrote: On Sun, 11 Oct 2020, Noel Duffy via fpc-pascal wrote: To avoid that duplication, the code would need to use a dynamic buffer and fill it just before socket writing. The TCP

Re: [fpc-pascal] netdb, DNS and TCP

2020-10-12 Thread Noel Duffy via fpc-pascal
On 11/10/20 9:42 pm, Michael Van Canneyt via fpc-pascal wrote: On Sun, 11 Oct 2020, Noel Duffy via fpc-pascal wrote: To avoid that duplication, the code would need to use a dynamic buffer and fill it just before socket writing. The TCP variant would include its length field in the buffer. A

Re: [fpc-pascal] netdb, DNS and TCP

2020-10-12 Thread Noel Duffy via fpc-pascal
On 11/10/20 9:42 pm, Michael Van Canneyt via fpc-pascal wrote: On Sun, 11 Oct 2020, Noel Duffy via fpc-pascal wrote: To avoid that duplication, the code would need to use a dynamic buffer and fill it just before socket writing. The TCP variant would include its length field in the buffer. A