Re: [fpc-pascal] Calculating CRC16?

2022-10-25 Thread Fabio Luis Girardi via fpc-pascal
To array of bytes, check this: https://github.com/fluisgirardi/pascalscada_v0/blob/master/src/scada/crc16utils.pas There are two routines: one to calculate, another to check if crc16 matches. Em ter., 25 de out. de 2022 às 08:13, Giuliano Colla via fpc-pascal < fpc-pascal@lists.freepascal.org> e

[fpc-pascal] HTTPS Client certificate in TFPHTTPServer

2022-08-28 Thread Fabio Luis Girardi via fpc-pascal
Hi! Now that I'm able to use TFPHTTPServer and HTTPS, I want to know how to use the certificate of HTTPS client to authenticate a session on TFPHTTPServer. This is possible? If yes, how to do that? Examples or pointing some docs are welcome. The best regards, Fabio Luis Girardi PascalSCADA Proj

Re: [fpc-pascal] TFPHTTPServer and HTTPS

2022-08-23 Thread Fabio Luis Girardi via fpc-pascal
Hi! Thanks Ondrej! With your orientation I was able to make a TFPHTTPServer working with HTTPS with FPC 3.2.2 Em ter., 23 de ago. de 2022 às 18:34, Alexey Torgashin via fpc-pascal < fpc-pascal@lists.freepascal.org> escreveu: > > You need to set your certificate details as well: > > fServer.Use

Re: [fpc-pascal] TFPHTTPServer and HTTPS

2022-08-23 Thread Fabio Luis Girardi via fpc-pascal
chael Van Canneyt via fpc-pascal < fpc-pascal@lists.freepascal.org> escreveu: > > > On Tue, 23 Aug 2022, Fabio Luis Girardi via fpc-pascal wrote: > > > Exists in FPC some example that demonstrates the use of TFPHTTPServer > > with HTTPS? The unique exa

[fpc-pascal] TFPHTTPServer and HTTPS

2022-08-23 Thread Fabio Luis Girardi via fpc-pascal
Exists in FPC some example that demonstrates the use of TFPHTTPServer with HTTPS? The unique example that I have found is about TCustomHTTPApplication. -- The best regards, Fabio Luis Girardi PascalSCADA Project http://sourceforge.net/projects/pascalscada http://www.pascalscada.com _

[fpc-pascal] Custom attributes

2020-05-20 Thread Fabio Luis Girardi via fpc-pascal
Hi! FPC compiler has a define when custom attributes are present? Something like FPC_HAS_CONSTREF, to say when constref is available... -- The best regards, Fabio Luis Girardi PascalSCADA Project http://sourceforge.net/projects/pascalscada http://www.pascalscada.com ___

Re: [fpc-pascal] enumerate record fields at runtime

2020-04-07 Thread Fabio Luis Girardi via fpc-pascal
Thanks for the clarification! Em ter., 7 de abr. de 2020 às 12:06, Sven Barth escreveu: > Fabio Luis Girardi via fpc-pascal > schrieb am Di., 7. Apr. 2020, 14:58: > >> >> Using RTTI I can count the record fields, but until now, I can't find a >> way to get the

[fpc-pascal] enumerate record fields at runtime

2020-04-07 Thread Fabio Luis Girardi via fpc-pascal
Hi all! To FPC developers: FPC trunk has a way to enumerate all record fields and get their names? For example: type aRec = record a:String; b:integer; K:Int64; W:Single; end; I want to do something like this: for f in aRec.Fields do writeln(f.Name); and get the output

Re: [fpc-pascal] fpmmap arm-linux issue

2020-02-26 Thread Fabio Luis Girardi via fpc-pascal
Hi Florian! Now it works as expected. Thanks! Em dom., 16 de fev. de 2020 às 18:32, Florian Klämpfl < flor...@freepascal.org> escreveu: > Am 01.02.20 um 18:13 schrieb je...@j-software.dk: > > Agreed, the rtl should definitely divide by pagesize if MMAP2 is > > defined. I've run into this discrep

Re: [fpc-pascal] fpmmap arm-linux issue

2020-02-17 Thread Fabio Luis Girardi via fpc-pascal
About windows CE? Em Seg, 17 de fev de 2020 17:12, Bo Berglund via fpc-pascal < fpc-pascal@lists.freepascal.org> escreveu: > On Sun, 16 Feb 2020 23:36:09 -0300, Fabio Luis Girardi via fpc-pascal > wrote: > > >I'll test it tomorrow. > > > >Em Dom, 16

Re: [fpc-pascal] fpmmap arm-linux issue

2020-02-16 Thread Fabio Luis Girardi via fpc-pascal
I'll test it tomorrow. Em Dom, 16 de fev de 2020 18:32, Florian Klämpfl escreveu: > Am 01.02.20 um 18:13 schrieb je...@j-software.dk: > > Agreed, the rtl should definitely divide by pagesize if MMAP2 is > > defined. I've run into this discrepancy before on ARM at work > > I have fixed it meanwhi

Re: [fpc-pascal] How to rebuild an fpc package

2020-02-12 Thread Fabio Luis Girardi via fpc-pascal
This is the tip of the day! Thanks! Em Qua, 12 de fev de 2020 10:40, Joost van der Sluis escreveu: > Op 10-02-2020 om 17:01 schreef Luis - SoftSAT Sistemas via fpc-pascal: > > I'am on Windows and installed latest lazarus version(2.0.6), but > > TCSVDataset from fcl-db package have some bugs so

Re: [fpc-pascal] fpmmap arm-linux issue

2020-02-01 Thread Fabio Luis Girardi via fpc-pascal
Ok. I'll fill out a bug report. Em Sáb, 1 de fev de 2020 13:47, Jonas Maebe escreveu: > On 31/01/2020 22:17, Fabio Luis Girardi via fpc-pascal wrote: > > In C: > > > > CM_BaseAddr = mmap(NULL, 0x4000, PROT_READ | PROT_WRITE, > > MAP_SHARED, devmemfd, *

[fpc-pascal] fpmmap arm-linux issue

2020-01-31 Thread Fabio Luis Girardi via fpc-pascal
Hi all! I'm porting a program written in C that uses mmap (fpmmap) that maps GPIOs and other utilities on a beaglebone. Everything is going well, until the test, where I see the all base address of beaglebone in FPC should be divided by 4096 dec ($1000 hex) to get it working. Example: In C: CM_

Re: [fpc-pascal] Best start point for adding new FPC target

2020-01-28 Thread Fabio Luis Girardi via fpc-pascal
Thanks for the hints! Em ter., 28 de jan. de 2020 às 16:41, Yuriy Sydorov escreveu: > On 28.01.2020 21:14, Fabio Luis Girardi via fpc-pascal wrote: > > Em ter., 28 de jan. de 2020 às 16:04, Yuriy Sydorov <mailto:j...@cp-lab.com>> escreveu: > > > > You need

Re: [fpc-pascal] Best start point for adding new FPC target

2020-01-28 Thread Fabio Luis Girardi via fpc-pascal
Em ter., 28 de jan. de 2020 às 16:04, Yuriy Sydorov escreveu: > You need to add support of a new CPU to the existing freebsd target. The > target would be arm-freebsd, since armhf is not > treated as a separate CPU by FPC. You need to create arm startup files in > the rtl/freebsd/arm folder. > Y

[fpc-pascal] Best start point for adding new FPC target

2020-01-28 Thread Fabio Luis Girardi via fpc-pascal
Hi all! I'm studying how to add a new target for the Freepascal compiler. The target is the missing armhf-FreeBSD. So I have looked at FPC guide ( https://wiki.freepascal.org/Porting_Free_Pascal#Adding_a_new_target) and looking at Overview section, item 2 says: "Take the closest existing RTL as a