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

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

2020-10-11 Thread Michael Van Canneyt via fpc-pascal
On Sun, 11 Oct 2020, Noel Duffy via fpc-pascal wrote: Hi all, To keep track of the work I've been doing on DNS in netdb, I created bug #37906 in Mantis. https://bugs.freepascal.org/view.php?id=37906 I've attached to a note on that bug report a proof-of-concept version of netdb.pp and a s

[fpc-pascal] netdb, DNS and TCP

2020-10-10 Thread Noel Duffy via fpc-pascal
Hi all, To keep track of the work I've been doing on DNS in netdb, I created bug #37906 in Mantis. https://bugs.freepascal.org/view.php?id=37906 I've attached to a note on that bug report a proof-of-concept version of netdb.pp and a small program that uses it to make text queries over TCP. Th