1. Computing
FREE CODE APPS :: Full Delphi source code to a simple Chat application. The example Chat program demonstrates how UDP broadcast can be used to find partners with unknown IP addresses in the network. While the "chat" application is a good candidate to use the "streaming" structure of TCP, here a UDP implementation is done. Provided the "connectionless" ways of UDP, multiple partners can send to a single network device.

Read the full article to learn how to create a Chat application with Delphi

Related:

Comments
March 28, 2009 at 7:24 am
(1) Alberto says:

The code doesn’t compile on Delphi 2007. The error is thrown on line “IdUDPClient1.SendBuffer(x, 4);” udp.pas(125)

There is no overloaded version of ‘SendBuffer’ that can be called with these arguments.

There are also other error on further lines:
(139) Undeclared identifier: “WSGetHostByAddr”.

March 28, 2009 at 8:04 am
(2) Zarko Gajic says:

Hi,

The code uses Indy version 9, while Delphi 2007 by default installs Indy 10.

March 31, 2011 at 9:13 am
(3) Dan says:

Soooo….what’s the fix?

October 29, 2012 at 11:43 pm
(4) taufik adi says:

nice information, is here any sample programming using indy ?

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

©2014 About.com. All rights reserved.