Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Two clients on one computer! (http://www.chiefdelphi.com/forums/showthread.php?t=78135)

janevblagoj 23-08-2009 03:32

Two clients on one computer!
 
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

Re: Two clients on one computer!
 
This ChiefDelphi site is not about Delphi programming.

keehun 23-08-2009 09:53

Re: Two clients on one computer!
 
Well, if you know how to program in Delphi, the concept should be:
  1. Initial contact... Exchange notices whether or not a client has alread attached to a certain UDP port.
  2. 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.
  3. 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.


All times are GMT -5. The time now is 01:11.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi