Re: [fpc-pascal] fphttclient, no way to specify a connect timeout

2018-02-23 Thread Luca Olivetti
El 23/02/18 a les 22:57, Dimitrios Chr. Ioannidis via fpc-pascal ha escrit: Hi Στις 23/2/2018 11:14 μμ, ο Luca Olivetti έγραψε: yes, it does (in procedure TFPCustomHTTPClient.ConnectToServer)   FSocket:=TInetSocket.Create(AHost,APort,G);   try     if FIOTimeout<>0 then  

Re: [fpc-pascal] C header to Pascal , what is the type of ENUM?

2018-02-23 Thread Martok
Am 23.02.2018 um 16:06 schrieb Dennis: > In C > ENUM_BEGIN( RetCode ) TA-Lib has very weird macros. It should expand to "enum class RetCode" (so it's actually C++), making this an int or unsigned int (depending on the compiler). Should be a Longword on >32bit compilers then. And (MvC will be

Re: [fpc-pascal] fcl-web - html web modules

2018-02-23 Thread African Wild Dog
2018-02-23 19:36 GMT-03:00 Michael Van Canneyt : > > What is not clear ? There are several samples available that show their > use ? > > Also the WIKI has some pages about it > http://wiki.freepascal.org/fcl-web > > There are some articles >

Re: [fpc-pascal] fcl-web - html web modules

2018-02-23 Thread Michael Van Canneyt
On Fri, 23 Feb 2018, African Wild Dog wrote: Hello, How to use action and sessions with HTML Web Modules? What is not clear ? There are several samples available that show their use ? Also the WIKI has some pages about it http://wiki.freepascal.org/fcl-web There are some articles

Re: [fpc-pascal] fphttclient, no way to specify a connect timeout

2018-02-23 Thread Dimitrios Chr. Ioannidis via fpc-pascal
Hi Στις 23/2/2018 11:14 μμ, ο Luca Olivetti έγραψε: yes, it does (in procedure TFPCustomHTTPClient.ConnectToServer)   FSocket:=TInetSocket.Create(AHost,APort,G);   try     if FIOTimeout<>0 then   FSocket.IOTimeout:=FIOTimeout; <-     FSocket.Connect;   except     FreeAndNil(FSocket);

Re: [fpc-pascal] fphttclient, no way to specify a connect timeout

2018-02-23 Thread Luca Olivetti
El 23/02/18 a les 19:34, Dimitrios Chr. Ioannidis via fpc-pascal ha escrit: Hi, Στις 23/2/2018 8:24 μμ, ο Luca Olivetti έγραψε: El 23/02/18 a les 18:51, Dimitrios Chr. Ioannidis via fpc-pascal ha escrit:    copy the ssockets.pp from \packages\fcl-net\src dir to your project dir and add

[fpc-pascal] fcl-web - html web modules

2018-02-23 Thread African Wild Dog
Hello, How to use action and sessions with HTML Web Modules? It seems fcl-web is an incomplete work. How can i help? Is there any list of incomplete implementations/to-do works? Regards ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] fphttclient, no way to specify a connect timeout

2018-02-23 Thread Dimitrios Chr. Ioannidis via fpc-pascal
Hi, Στις 23/2/2018 8:24 μμ, ο Luca Olivetti έγραψε: El 23/02/18 a les 18:51, Dimitrios Chr. Ioannidis via fpc-pascal ha escrit:    copy the ssockets.pp from \packages\fcl-net\src dir to your project dir and add the following line SetIOTimeout(FIOTimeout); to Procedure

Re: [fpc-pascal] fphttclient, no way to specify a connect timeout

2018-02-23 Thread Luca Olivetti
El 23/02/18 a les 18:51, Dimitrios Chr. Ioannidis via fpc-pascal ha escrit:   copy the ssockets.pp from \packages\fcl-net\src dir to your project dir and add the following line SetIOTimeout(FIOTimeout); to Procedure TInetSocket.Connect; like this fphttpclient already does that before

Re: [fpc-pascal] fphttclient, no way to specify a connect timeout

2018-02-23 Thread Dimitrios Chr. Ioannidis via fpc-pascal
Hi, Στις 23/2/2018 5:17 μμ, ο Michael Van Canneyt έγραψε: On Fri, 23 Feb 2018, Luca Olivetti wrote: Hello, the TFpHttpClient has an IoTimeout property, which in turn sets the IOTimeout of its FSocket (TInetSocket), however there's no way to set a connection timeout. I see that even

Re: [fpc-pascal] fphttclient, no way to specify a connect timeout

2018-02-23 Thread Michael Van Canneyt
On Fri, 23 Feb 2018, Luca Olivetti wrote: Hello, the TFpHttpClient has an IoTimeout property, which in turn sets the IOTimeout of its FSocket (TInetSocket), however there's no way to set a connection timeout. I see that even overriding the SocketHandler wouldn't change that, since it's

[fpc-pascal] C header to Pascal , what is the type of ENUM?

2018-02-23 Thread Dennis
In C ENUM_BEGIN( RetCode )     /*  0 */  ENUM_DEFINE( TA_SUCCESS, Success ), /* No error */     /*  1 */  ENUM_DEFINE( TA_LIB_NOT_INITIALIZE, LibNotInitialize ), /* TA_Initialize was not sucessfully called */     /*  2 */  ENUM_DEFINE( TA_BAD_PARAM, BadParam ), /* A parameter is out

Re: [fpc-pascal] Better way to convert short string to pchar?

2018-02-23 Thread Ryan Joseph
> On Feb 23, 2018, at 6:51 PM, Marco van de Voort wrote: > > When creating the content of name append #0 (name:=whateverexpression+#0 ); , > then do > result = glGetUniformLocation(programID, @name[1]); Thanks now I remember. That was driving me crazy. Regards,

Re: [fpc-pascal] Better way to convert short string to pchar?

2018-02-23 Thread Marco van de Voort
In our previous episode, Ryan Joseph said: > I would like short strings so I can do concatenation easily but I need to > pass pchar to a C function. Is there anyway to do this on the stack instead > of allocating a string each time? I feel like it was possible to do some type > casting but I

[fpc-pascal] fphttclient, no way to specify a connect timeout

2018-02-23 Thread Luca Olivetti
Hello, the TFpHttpClient has an IoTimeout property, which in turn sets the IOTimeout of its FSocket (TInetSocket), however there's no way to set a connection timeout. I see that even overriding the SocketHandler wouldn't change that, since it's connect is only called *after* the fpconnect

Re: [fpc-pascal] Is this the correct way to configure fpc for multiple arm-embedded subarchs?

2018-02-23 Thread Michael Ring
I am doing something similar to what you are doing, see below I also needed to create a softlink so that fpc can call ppcrossarm, it expects to call ppcarm By using 'INSTALL_UNITDIR' there is no need to copy files at the end. You will need to do a little tweak in fpc.cfg, after this it