Re: [fpc-pascal]Synapse for FPC

2003-07-25 Thread Lukas Gebauer
programmers. ;-/ One my mind... when FPC reporting error with expected data type, can they report me where this data type is declared? -- Lukas Gebauer. E-mail: [EMAIL PROTECTED] http://www.ararat.cz/synapse/ - Ararat Synapse - TCP/IP Lib. ___ fpc-pascal

Re: [fpc-pascal]Synapse for FPC

2003-07-24 Thread Lukas Gebauer
this very similar for Synapse's purposes. ;-) -- Lukas Gebauer. E-mail: [EMAIL PROTECTED] http://www.ararat.cz/synapse/ - Ararat Synapse - TCP/IP Lib. ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal]Synapse for FPC

2003-07-24 Thread Michael Van Canneyt
On Thu, 24 Jul 2003, Lukas Gebauer wrote: That isn't. I was more hinting at the TSystemTime example. Sysutils is platform independant, and Windows is dependant. Ok, enhance this my example: What is different between TSystemTme structure in sysutils and in windows? Windows structure have

Re: [fpc-pascal]Synapse for FPC

2003-07-24 Thread A.J. Venter
Having read this thread with interest, I feel compelled to say something. Very simply put, I have no care how good a piece of code is by any other judgement. If it cannot be ported, it has already failed the most crucial test for code. Okay, maybe that is a bit harsh, there are obviously

Re: [fpc-pascal]Synapse for FPC

2003-07-24 Thread L D Blake
In reply to your message of July 24, 2003 In most cases, casting an ansistring as pchar will work. The only caveat is when Windows wants to alter the variable you pass' contenets. e.g. MessageBox( pchar(MyMessage), 'test', MB_OK); but not: GetUserName( pchar(Username), 255 );

Re: [fpc-pascal]Synapse for FPC

2003-07-23 Thread Lukas Gebauer
It's pretty hard to use blocking sockets without multiple threads without your application halting whenever there is a request that takes a long time to respond. yes, but... with other large TCP/IP libraries you MUST use threads... with synapse you CAN use threads. This is mojor difference!

Re[2]: [fpc-pascal]Synapse for FPC

2003-07-23 Thread vtech-fpc
LG yes, but... with other large TCP/IP libraries you MUST use threads... LG with synapse you CAN use threads. This is mojor difference! One day LG will be finished thread support in FPC and all will be happy. ;-) Why must I use threads? Following works perfectly for me for many years:

Re: Re[2]: [fpc-pascal]Synapse for FPC

2003-07-23 Thread Lukas Gebauer
too. (some of my customers using this!) -- Lukas Gebauer. E-mail: [EMAIL PROTECTED] http://www.ararat.cz/synapse/ - Ararat Synapse - TCP/IP Lib. ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal]Synapse for FPC

2003-07-23 Thread Lukas Gebauer
Gebauer. E-mail: [EMAIL PROTECTED] http://www.ararat.cz/synapse/ - Ararat Synapse - TCP/IP Lib. ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: Re[2]: [fpc-pascal]Synapse for FPC

2003-07-23 Thread Matt Emson
Why must I use threads? You must use threads in blocking tcp/ip else you will hang your application everytime the network traffic slows or the application you connect to (server?) does not immediately respond. Try changing your calls to blocking and see what happens. Following works perfectly

Re: [fpc-pascal]Synapse for FPC

2003-07-23 Thread Lukas Gebauer
. ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re[4]: [fpc-pascal]Synapse for FPC

2003-07-23 Thread vtech-fpc
ME Use threads and blocking api. I have (almost) nothing against threads, but they definitely have disadvantages to, especially when used in a huge project: 1. synchronization - need to use critical sections / locks 2. they are very hard to debug and time dependant bugs can be introduced. 3.

Re: [fpc-pascal]Synapse for FPC

2003-07-23 Thread Marco van de Voort
And the other way around. The main problem with Borland is that it only supports one and a half platform on one processor. Sure, but Borland is home for Synapse. Also for FPC. See FPC as yet another Delphi version to support. If you do a large Delphi product that will compile with a lot of

Re: [fpc-pascal]Synapse for FPC

2003-07-23 Thread Lukas Gebauer
PROTECTED] http://www.ararat.cz/synapse/ - Ararat Synapse - TCP/IP Lib. ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal]Synapse for FPC

2003-07-23 Thread Matt Emson
When I porting Synapse into FPC, then i find lot of incompatibilities between Win32FPC and LinuxFPC. For example, look to Kylix sysutils.pas... in FPC is not here lot of stuffs! Some stuffs is in another units, some stuffs is missing at all. This is very bad situation for create programs for

Re: Re[2]: [fpc-pascal]Synapse for FPC

2003-07-23 Thread Marco van de Voort
Hmm, I think this is more due to the move to event driven programming models than cooperative multitasking. No, that is a hlf truth. Have you ever tried to write blocking tcp/ip code without threads? Yes. It will block untill it receives the response. This completely* stops the

Re: [fpc-pascal]Synapse for FPC

2003-07-23 Thread Matt Emson
So finally, I don't think we're doing a bad job. We'll get there, slowly but surely. You're all doing a good job, I was just pointing out that these are not new issues. Strings.pp for example holds a lot of string related functions that really need to be in sysutils now. They are

Re: [fpc-pascal]Synapse for FPC

2003-07-23 Thread Matt Emson
But is is not easy! I create my code on Delphi3, and it working on all higher versions without any modification! And does it work on lower versions without any modification? Otherwise you still don't support multiple versions. Delphi 1 would be unlikely. Delphi 2 was an awful compiler,

Re: [fpc-pascal]Synapse for FPC

2003-07-23 Thread Marco van de Voort
[some minor remarks] Maybe FPC would be simpler if it was 2 or 3 exe's. e.g. fpc_tp[.exe], fpc_obj[.exe] and fpc_bd[.exe]. I include an fpc_obj to be polite as I see no real need for it. I made my opinion of the obj fpc made clear a long time ago ;-) Opinions differ. But the IDE and parts

Re: [fpc-pascal]Synapse for FPC

2003-07-22 Thread Michael Van Canneyt
On Tue, 22 Jul 2003, Marco van de Voort wrote: SNMP, NTP, SNTP, DNS, Syslog, FTP, TFTP, HTTP or LDAP protocols. You can also use my MIME encoding and decoding engine, you can use my charset transcoding engine... and lot of more stuffs. ;-) For more informations look to 'Ararat

Re: [fpc-pascal]Synapse for FPC

2003-07-22 Thread Lukas Gebauer
Why should we use your set of classes vs. another set of classes developer by person X ? :) Just a friendly question, I know there are a lot of TCP/IP suites around... Why? It is not simple question. ;-) Before a five years I need socket library for Delphi. In this time exists only two good

Re: [fpc-pascal]Synapse for FPC

2003-07-22 Thread James Mills
On Tue, Jul 22, 2003 at 10:36:54AM +0200, Lukas Gebauer wrote: Why should we use your set of classes vs. another set of classes developer by person X ? :) Just a friendly question, I know there are a lot of TCP/IP suites around... Why? It is not simple question. ;-) Before a five

Re: [fpc-pascal]Synapse for FPC

2003-07-22 Thread James Mills
On Tue, Jul 22, 2003 at 09:28:12AM +0200, Michael Van Canneyt wrote: On Tue, 22 Jul 2003, Marco van de Voort wrote: SNMP, NTP, SNTP, DNS, Syslog, FTP, TFTP, HTTP or LDAP protocols. You can also use my MIME encoding and decoding engine, you can use my charset transcoding

Re: [fpc-pascal]Synapse for FPC

2003-07-22 Thread Marco van de Voort
Today I release new version of my 'Ararat Synapse'. (rel. 32) What it is? 'Ararat Synapse' is TCP/IP library for Delphi, C++Builder and Kylix. Now it is for FreePascal too! It can be used for Wn32 systems and for Linux systems too. Synapse is set of non-visual classes and procedures for

Re: [fpc-pascal]Synapse for FPC

2003-07-22 Thread Michael Van Canneyt
On Tue, 22 Jul 2003, Marco van de Voort wrote: Today I release new version of my 'Ararat Synapse'. (rel. 32) What it is? 'Ararat Synapse' is TCP/IP library for Delphi, C++Builder and Kylix. Now it is for FreePascal too! It can be used for Wn32 systems and for Linux systems too.

Re: [fpc-pascal]Synapse for FPC

2003-07-22 Thread Marco van de Voort
On Tue, 22 Jul 2003, Marco van de Voort wrote: Today I release new version of my 'Ararat Synapse'. (rel. 32) What it is? 'Ararat Synapse' is TCP/IP library for Delphi, C++Builder and Kylix. Now it is for FreePascal too! It can be used for Wn32 systems and for Linux systems

Re: [fpc-pascal]Synapse for FPC

2003-07-22 Thread Lukas Gebauer
Is it synchranous/blocking or asynchranous? TCP/IP without threads is an interesting idea, but I wouldn't like to have to use it. I don't see how it could be usable in a real life app. Synapse is blocking by default... but you can use it in non-blocking mode too. It is greately usable for

Re: [fpc-pascal]Synapse for FPC

2003-07-22 Thread Lukas Gebauer
I looked at the unit (mainly the synsock unit), and I see a Delphi project patched for Kylix, which is patched for FPC/Linux. In all library is very small 'IFDEFs' except synsock.pas. However lot of 'IFDEFS' is only for FPC incompatbility with Borlands compilers! Current Synapse is not final

Re: [fpc-pascal]Synapse for FPC

2003-07-22 Thread Marco van de Voort
I looked at the unit (mainly the synsock unit), and I see a Delphi project patched for Kylix, which is patched for FPC/Linux. In all library is very small 'IFDEFs' except synsock.pas. However lot of 'IFDEFS' is only for FPC incompatbility with Borlands compilers! And the other way around.

Re: [fpc-pascal]Synapse for FPC

2003-07-22 Thread Matt Emson
It is greately usable for command-line programs or for visual programs where blocking operation is not a problem. Apps with a GUI will cause a problem, no matter what. I include programs that use TurboVision/FreeVision/NCurses et al for GUI. I work on a large app that is completely TCP/IP based

[fpc-pascal]Synapse for FPC

2003-07-21 Thread Lukas Gebauer
engine... and lot of more stuffs. ;-) For more informations look to 'Ararat Synapse' web. -- Lukas Gebauer. E-mail: [EMAIL PROTECTED] http://www.ararat.cz/synapse/ - Ararat Synapse - TCP/IP Lib. ___ fpc-pascal maillist - [EMAIL PROTECTED] http