Re: [Lazarus] Sending secure smtp email via Synapse

2015-09-23 Thread Graeme Geldenhuys
On 2015-09-23 10:29, Richard Mace wrote:
> I have "ssl_openssl" in my uses, but I haven't downloaded any DLL(s)?
> Could anybody point me in the right direction please?

You need the two DLL's to go with it.



 http://www.marcocantu.com/tips/oct06_gmail.html
 http://www.indyproject.org/Sockets/SSL.en.aspx

Various versions of the required DLL's for Windows.
 http://indy.fulgan.com/SSL/

I also include them with every XanaNews (news client written in Delphi)
release I make. But I get them from the [http://indy.fulgan.com/SSL/]
link, so that is your best bet.

  https://github.com/graemeg/xananews


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Sending secure smtp email via Synapse

2015-09-23 Thread Richard Mace
>
>
> I also include them with every XanaNews (news client written in Delphi)
> release I make. But I get them from the [http://indy.fulgan.com/SSL/]
> link, so that is your best bet.
>
>   https://github.com/graemeg/xananews
>
>
> Regards,
>   - Graeme -
>

​Thanks Graeme,
There seems to be lots of different files. Can you recommend a particular
file please?

Thanks

Richard ​
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Sending secure smtp email via Synapse

2015-09-23 Thread Ondrej Pokorny

On 23.09.2015 11:29, Richard Mace wrote:

Hi All,
I am trying to send secure SMTP email by using Synapse and Lazarus 
1.4.2 under Windows 7 and am not getting very far.

I have followed the example on this page:
http://wiki.freepascal.org/Synapse

and am wondering whether I am missing some DLL's or something, as I 
can't get it to work.


When debugging through the code, the following code is not run as 
SMTP.login returns false:


if SMTP.Login then
begin
  result := SMTP.MailFrom(MailFrom, Length(MailData)) and
 SMTP.MailTo(MailTo) and
 SMTP.MailData(sl);
  SMTP.Logout;
end;

I am currently trying to send via smtp.gmail.com 
 on port 465, but I'll need to allow the option 
in my application for any SMTP server to be used.


I have "ssl_openssl" in my uses, but I haven't downloaded any DLL(s)?

Could anybody point me in the right direction please?

Many thanks

Richard


Yes, you need ssleay32.dll and libeay32.dll

Ondrej
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Sending secure smtp email via Synapse

2015-09-23 Thread Graeme Geldenhuys
On 2015-09-23 13:07, Richard Mace wrote:
> Can you recommend a particular file please?

They are all for windows, just different version numbers - as they got
released.

The latest version is at the bottom of the list, so pick one of these
depending if you app is 32-bit or 64-bit.

  openssl-1.0.2d-i386-win32.zip
  openssl-1.0.2d-x64_86-win64.zip


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-23 Thread Graeme Geldenhuys
On 2015-09-23 15:21, Bo Berglund wrote:
> I tried to find instructions on how to use Indy in Lazarus/FPC but
> what I found was very old and incomplete...

I've used Indy with FPC for years, in the tiOPF's 3-tier code. Tested
under Windows, Linux and FreeBSD. Usage was identical compared to
Delphi+Indy.

The only difference I remember was with server components (eg: HTTP
Server) which required root access to open the port, because the port
was below 1024. Using ports higher than 1024 could be run as a normal user.

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-23 Thread Bo Berglund
On Wed, 23 Sep 2015 11:20:36 +0200, Michael Schnell
 wrote:

>On 09/23/2015 07:37 AM, Martin Schreiber wrote:
>> The MSEgui socket components (and the pipe reader and RS232 components 
>> too BTW) implement the model Michael describes.
>
>For Delphi we (company) use AsyncPro (as well for RS232 as for TCP/IP) 
>(Initially provided commercially  by TurboPower, but free and open 
>source now). Unfortunately this is Windows only and porting it it 
>Lazarus (Linux) would require a decent amount of work.
>

I have used the AsyncPro com port also and I noted that there is a
TCP/IP version of the com port as well (ApdWinsockPort) such that
using this in Delphi would make it possible to just switch from one to
the other by setting a property.

I once tried to look at the dependencies in order to cut down on the
number of needed units for my usage of the serial port, but it just
chained wider and wider so the task became insurmountable.

I tried to find instructions on how to use Indy in Lazarus/FPC but
what I found was very old and incomplete...
http://wiki.freepascal.org/Indy_with_Lazarus
http://www.indyproject.org/sockets/fpc/index.en.aspx


-- 
Bo Berglund
Developer in Sweden


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-23 Thread Michael Schnell

On 09/23/2015 04:21 PM, Bo Berglund wrote:
I have used the AsyncPro com port also and I noted that there is a 
TCP/IP version of the com port as well (ApdWinsockPort) such that 
using this in Delphi would make it possible to just switch from one to 
the other by setting a property.
It would be grate to have a Lazarus Linux version of AsyncPro, but I 
don't have much hope...


-Michael

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-23 Thread Paul Breneman

On 09/23/2015 10:27 AM, Michael Schnell wrote:

On 09/23/2015 04:21 PM, Bo Berglund wrote:

I have used the AsyncPro com port also and I noted that there is a
TCP/IP version of the com port as well (ApdWinsockPort) such that
using this in Delphi would make it possible to just switch from one to
the other by setting a property.

It would be grate to have a Lazarus Linux version of AsyncPro, but I
don't have much hope...


I've done a lot with AsyncPro for about 27 years or so.  About six 
months ago I helped a company add Ethernet to their serial support using 
the ApdWinsockPort which works well.


www.CtrlTerm.com uses Synapse for both serial and TCP/IP but it isn't as 
nice as AsyncPro but if someone wants to hire me... :)


See the bottom of this page for more info:
  http://turbocontrol.com/APro.htm


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-23 Thread Graeme Geldenhuys
On 2015-09-23 05:18, Bo Berglund wrote:
> 3) Next port to Lazarus on Linux (I have a Linux Mint virtual machine)
> 4) Finally port over to Raspberry Pi

And you'll most likely find that the last step doesn't require any extra
development or "porting" - simply the setup of the FPC compiler. [Going
with the assumption that most RPi's run a Linux distro]

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to see sockets in Lazarus 1.4.0?

2015-09-23 Thread Michael Van Canneyt



On Tue, 22 Sep 2015, Bo Berglund wrote:


On Mon, 21 Sep 2015 19:05:53 +0200 (CEST), Michael Van Canneyt
 wrote:




On Mon, 21 Sep 2015, Bo Berglund wrote:


Can someone point me to some instructions on how to make the sockets
visible in Lazarus?


They are not visible, they are not components.
You must create them in code.

I do believe there is a third-party package which can work on top of Synapse,
and which contains components you can drop on a data module.



Thanks!

I have another visibility question:
In Delphi7 I usually show both the Object Inspector and the Code
Explorer and I always dock them together in one floating window.
Is this possible also in Lazarus?
I seem not to be able to dock them together using the tricks of
Delphi7


It is, if you install one of the docking packages.

Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-23 Thread Mark Morgan Lloyd

Graeme Geldenhuys wrote:

On 2015-09-23 05:18, Bo Berglund wrote:

3) Next port to Lazarus on Linux (I have a Linux Mint virtual machine)
4) Finally port over to Raspberry Pi


And you'll most likely find that the last step doesn't require any extra
development or "porting" - simply the setup of the FPC compiler. [Going
with the assumption that most RPi's run a Linux distro]


From practical experience with Raspbian, it appears that once FPC and 
Lazarus are on an RPi the overall system behaves like any computer. 
Perhaps not quite as fast as a modern x86, but the difference is 
quantitative not qualitative.


That might not be the case with other distreax.

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TInetSocket usage - any documentation available?

2015-09-23 Thread Mark Morgan Lloyd

Michael Van Canneyt wrote:

On Wed, 23 Sep 2015, Bo Berglund wrote:


I have looked for a native FPC TCP/IP socket to use as a replacement
for a serial port component and I discovered the ssockets unit that
ships with FPC and contains a TInetSocket class.
This seemed useful.



The data shifted through the socket will be EXACTLY the same as was
earlier transferred by RS232.

Any suggestions on where I can find suitable documentation?



Shortly said: There is none.

If the various demo programs are not understandable for you, you are out 
of luck :(


Now, from what you describe, all you need to do is use the read/write
methods to send and receive data, just as in any stream: the client 
TInetSock is a TStream descendent.


Thread programming is not so difficult, but I am not convinced that for 
the use case you describe, threads are really needed (despite 
suggestions to the contrary on this list).


I'd suggest that the bottom line there is making the socket code oresent 
the same interface as the existing RS232 code.


I've not used it so I'm not happy giving advice, but Google definitely 
turns up a few TInetSocket examples, such as


http://ejemplos.mis-algoritmos.com/programa-cliente-de-tinetsocket

I agree that it's unfortunate that there's not one in the fcl-net 
package itself, but (again via Google) there's a minimal example in 
fcl-web/src/base/fcgigate.pp which might help. Also via a local grep I 
notice references in fcl-base/examples/dsockcli.pp and 
utils/debugsvr/dbugintf.pp which might turn out to be useful.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Storing projects in subversion (or git etc.)

2015-09-23 Thread Mark Morgan Lloyd

Mattias Gaertner wrote:

On Tue, 22 Sep 2015 09:09:07 +
Mark Morgan Lloyd  wrote:


Marco van de Voort wrote:

On Mon, Sep 21, 2015 at 09:35:13AM +, Mark Morgan Lloyd wrote:

of file should be put in a repository, and what is regenerated reliably?

Obviously .lpi, .lpr, .lfm and .pas or .pp should be saved, and any 
static .inc files.

.rc

Should that be stored in all cases or is it version-specific?

Only the ones you made yourself. IOW the same as with .res.

Thanks, got it.

Is there a Wiki page for "collected wisdom" relating to both Subversion 
and Git, or would it be useful if I created one?


About file types: maybe this page can be extended:

http://wiki.lazarus.freepascal.org/File_extensions


Seems like a useful place to put it. Done, with redirects for gitignore 
and svn:ignore.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TInetSocket usage - any documentation available?

2015-09-23 Thread Michael Van Canneyt



On Wed, 23 Sep 2015, Bo Berglund wrote:


I have looked for a native FPC TCP/IP socket to use as a replacement
for a serial port component and I discovered the ssockets unit that
ships with FPC and contains a TInetSocket class.
This seemed useful.



The data shifted through the socket will be EXACTLY the same as was
earlier transferred by RS232.

Any suggestions on where I can find suitable documentation?



Shortly said: There is none.

If the various demo programs are not understandable for you, you are out of 
luck :(

Now, from what you describe, all you need to do is use the read/write
methods to send and receive data, just as in any stream: the client 
TInetSock is a TStream descendent.


Thread programming is not so difficult, but I am not convinced that for the 
use case you describe, threads are really needed (despite suggestions to the 
contrary on this list).


Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-23 Thread Graeme Geldenhuys
On 2015-09-23 21:05, Bo Berglund wrote:
> 1) I check out the Indy 10.5.7 sources (Core, Protocols, System) like
> I always do with new installs of Delphi into some subfolder of FPC.
> (WE keep the 10.5.7 version in our own version control in order to get
> some consistency in our development)


I just had a look... From what I can see on their support newsgroup
[news://news.atozed.com/atozedsoftware.indy.fpc], Indy 10.5.9 also works
with FPC. Seems I need to upgrade at some point. :)

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-23 Thread Bo Berglund
On Wed, 23 Sep 2015 22:32:29 +0100, Graeme Geldenhuys
 wrote:

>On 2015-09-23 21:05, Bo Berglund wrote:
>> 
>> Is this the way to go?
>
>
>I'm using Indy 10.2.0.3 (the FPC & Lazarus version downloaded from their
>website). I don't know if they merged those changes into their latest
>code repository version. I would imagine they did. I haven't looked at
>Indy's website in ages to see if there is anything newer, but from the
>version number you quoted I guess there is. ;-)
>
>Then simply add the /fpc/ path to your project's "Unit Path" and
>"Include Path" and away you go. I don't bother installing most
>components into Lazarus's component palette. I simply instantiate the
>classes I need in my code and go from there.
>

Thanks,
I will try this.
Regarding Indy10 I got the 10.5.7 from Fulgan in 2010 when I decided
to freeze my versions for compatibility across IDE:s.

The current version on the Fulgan server, which is the one one gets to
from your posted link is 10.6.2.0 (and a nightly build at that) i.e.
the bleeding edge.
I'd rather stay with 10.5.7 as long as possible.


-- 
Bo Berglund
Developer in Sweden


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-23 Thread Graeme Geldenhuys
On 2015-09-23 22:32, Graeme Geldenhuys wrote:
> I'm using Indy 10.2.0.3 (the FPC & Lazarus version downloaded from their
> website).

Sorry, I forgot to post the link to Indy's exact page.

  http://www.indyproject.org/Sockets/fpc/index.EN.aspx


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-23 Thread Graeme Geldenhuys
On 2015-09-23 21:05, Bo Berglund wrote:
> 
> Is this the way to go?


I'm using Indy 10.2.0.3 (the FPC & Lazarus version downloaded from their
website). I don't know if they merged those changes into their latest
code repository version. I would imagine they did. I haven't looked at
Indy's website in ages to see if there is anything newer, but from the
version number you quoted I guess there is. ;-)

Then simply add the /fpc/ path to your project's "Unit Path" and
"Include Path" and away you go. I don't bother installing most
components into Lazarus's component palette. I simply instantiate the
classes I need in my code and go from there.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-23 Thread Bo Berglund
On Wed, 23 Sep 2015 15:30:53 +0100, Graeme Geldenhuys
 wrote:

>On 2015-09-23 15:21, Bo Berglund wrote:
>> I tried to find instructions on how to use Indy in Lazarus/FPC but
>> what I found was very old and incomplete...
>
>I've used Indy with FPC for years, in the tiOPF's 3-tier code. Tested
>under Windows, Linux and FreeBSD. Usage was identical compared to
>Delphi+Indy.
>
>The only difference I remember was with server components (eg: HTTP
>Server) which required root access to open the port, because the port
>was below 1024. Using ports higher than 1024 could be run as a normal user.
>
So do I take it as:

1) I check out the Indy 10.5.7 sources (Core, Protocols, System) like
I always do with new installs of Delphi into some subfolder of FPC.
(WE keep the 10.5.7 version in our own version control in order to get
some consistency in our development)

2) I add the path to these locations to somewhere in FPC or Lazarus.
Where is this done???

3) Then I start using the Indy stuff in my application. Just add the
proper units into the uses clause of teh applications as needed.

Is this the way to go?

-- 
Bo Berglund
Developer in Sweden


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-23 Thread Bo Berglund
On Wed, 23 Sep 2015 08:42:43 +, Mark Morgan Lloyd
 wrote:

>Graeme Geldenhuys wrote:
>> On 2015-09-23 05:18, Bo Berglund wrote:
>>> 3) Next port to Lazarus on Linux (I have a Linux Mint virtual machine)
>>> 4) Finally port over to Raspberry Pi
>> 
>> And you'll most likely find that the last step doesn't require any extra
>> development or "porting" - simply the setup of the FPC compiler. [Going
>> with the assumption that most RPi's run a Linux distro]
>
> From practical experience with Raspbian, it appears that once FPC and 
>Lazarus are on an RPi the overall system behaves like any computer. 
>Perhaps not quite as fast as a modern x86, but the difference is 
>quantitative not qualitative.
>
>That might not be the case with other distreax.
>
Thanks for the info!
I planned on going with RaspBian for this project. :)

The only caveat here would be if Indy10 will actually build and
function correctly in RaspBian.
I will find that out in due time. I don't have the hardware available
right now since I am travelling, will purchase a dedicated Pi2B as
soon as I return to home base.


-- 
Bo Berglund
Developer in Sweden


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-23 Thread Michael Schnell

On 09/23/2015 07:37 AM, Martin Schreiber wrote:
The MSEgui socket components (and the pipe reader and RS232 components 
too BTW) implement the model Michael describes.


For Delphi we (company) use AsyncPro (as well for RS232 as for TCP/IP) 
(Initially provided commercially  by TurboPower, but free and open 
source now). Unfortunately this is Windows only and porting it it 
Lazarus (Linux) would require a decent amount of work.


-Michael

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Sending secure smtp email via Synapse

2015-09-23 Thread Richard Mace
Hi All,
I am trying to send secure SMTP email by using Synapse and Lazarus 1.4.2
under Windows 7 and am not getting very far.
I have followed the example on this page:
http://wiki.freepascal.org/Synapse

and am wondering whether I am missing some DLL's or something, as I can't
get it to work.

When debugging through the code, the following code is not run as
SMTP.login returns false:

if SMTP.Login then
begin
  result := SMTP.MailFrom(MailFrom, Length(MailData)) and
 SMTP.MailTo(MailTo) and
 SMTP.MailData(sl);
  SMTP.Logout;
end;

I am currently trying to send via smtp.gmail.com on port 465, but I'll need
to allow the option in my application for any SMTP server to be used.

I have "ssl_openssl" in my uses, but I haven't downloaded any DLL(s)?

Could anybody point me in the right direction please?

Many thanks

Richard
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-23 Thread Bo Berglund
On Wed, 23 Sep 2015 17:48:24 -0400, Bo Berglund
 wrote:

>I will try this.

I checked out the Indy10 version from our own version control into a
new CMP folder for FPC.
Then added the Core, Protocols and System subfolders to the project
search path after creating a new Console project.

I added code into the DoRun procedure of the new project so it looks
like this:
[code]
procedure TSSCommTest.DoRun;
var
  FComm: TIdTCPClient;
  T1, T2: Cardinal;
begin
  { add your program here }
  Writeln('Creating TCP client');
  FComm := TIdTCPClient.Create;
  try
Writeln('Connecting to 10.0.0.7 on port 2401 (CVS)');
T1 := GetTickCount;
FComm.Connect('10.0.0.7', 2401);
T2 := GetTickCount;
T2 := T2 - T1;
Writeln('Connection succeeded in ' + IntToStr(T2) + ' ms, now
closing down');
  finally
if FComm.Connected then
   FComm.Disconnect;
FComm.Free;
  end;
  // stop program loop
  Writeln('End of run');
  Terminate;
end;
[/code]
It compiled fine after I added Windows (for GetTickCount) and
IdTCPClient to the uses clause.

Then I ran it and could see this:

D:\Engineering\Projects\Lazarus\TCPIPTST>SSTCPTest.exe
Creating TCP client
Connecting to 10.0.0.7 on port 2401 (CVS)
Connection succeeded in 62 ms, now closing down
End of run

So I say that this is milestone #1 on my way.
Now I have to create a server too and check comm between them.
But that will probably be OK


-- 
Bo Berglund
Developer in Sweden


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus