Log in

View Full Version : Two clients on one computer!


janevblagoj
23-08-2009, 03:32
HI,

Which changes I must to make in this program about (UDP Chat) which you may find on
http://delphi.about.com/library/weekly/aa101105a.htm
To work on one computer simulate 2 clients, concerning with start two times on this program
On same Computer I want to have two clients!! Is it possible?

With Regard
Janev

GaryVoshol
23-08-2009, 06:32
This ChiefDelphi site is not about Delphi programming.

keehun
23-08-2009, 09:53
Well, if you know how to program in Delphi, the concept should be:


Initial contact... Exchange notices whether or not a client has alread attached to a certain UDP port.
If so, then the server probes the next designated port. If it's unoccupied, bind the connection. If it's already taken by another instance of the client, then move on to the next designated port.
When you make the exchange, the server should record which port it's been bound to. This way, the server can differentiate.


Good luck!

I personally think you should implement an IRC client.