tags:

views:

197

answers:

3

Hello,

I worked in Delphi 6 a few years. Now I was beginning in Delphi network and I need some source code For following things: I want make chat application which to have two peer to peer clients
But I don’t know how I to measure time for two clients and show it on both Screens. I also want to mark first client with 1,second with 2 ,,,,, In some application I want to have value who accounting number of sending of both clients Generally does it exist variable which is mutual for both clients?! Can somebody to send me source code of this kind?! Comments in source code will be welcome.

Thank You Blagoj

[email removed, return to this site for answer(s)]

+10  A: 

For networking in Delphi, Indy is just about all you need to know :)

Tons of sample projects contained therein.

moobaa
One of these examples is a mini chat ;-). But yes, despite the learning curve, indy is the way to go.
Gamecat
Despite the worse examples, I'd go with Indy10.
Marco van de Voort
+2  A: 

A quick Google search will turn up lots of examples with source code. This one was at the top of the list.

As far as socket libraries go, I like Indy, too. You'll find some more options in this question.

Bruce McGee
Ah, Bruce - you beat me to posting the 'Delphi About' UDP chat while I was trying to remember where I'd seen it. :-)
robsoft
Sorry about that. :)
Bruce McGee
+1  A: 

Synapse is a good choose.

Leo
Synapse is very easy to use and supports Delphi 2009. In all my tests, performance and reliability of Synapse is very close to Indy.
mjustin