Go to Post There are no simple solutions, as every solution has its own problems. - M. Lillis [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-08-2009, 03:32
janevblagoj janevblagoj is offline
Registered User
no team
 
Join Date: Jul 2007
Location: Macedonia
Posts: 3
janevblagoj is an unknown quantity at this point
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
  #2   Spotlight this post!  
Unread 23-08-2009, 06:32
GaryVoshol's Avatar
GaryVoshol GaryVoshol is offline
Cogito ergo arbitro
no team
 
Join Date: Aug 2005
Rookie Year: 2000
Location: Royal Oak, MI
Posts: 5,743
GaryVoshol has a reputation beyond reputeGaryVoshol has a reputation beyond reputeGaryVoshol has a reputation beyond reputeGaryVoshol has a reputation beyond reputeGaryVoshol has a reputation beyond reputeGaryVoshol has a reputation beyond reputeGaryVoshol has a reputation beyond reputeGaryVoshol has a reputation beyond reputeGaryVoshol has a reputation beyond reputeGaryVoshol has a reputation beyond reputeGaryVoshol has a reputation beyond repute
Re: Two clients on one computer!

This ChiefDelphi site is not about Delphi programming.
__________________
(since 2004)
  #3   Spotlight this post!  
Unread 23-08-2009, 09:53
keehun's Avatar
keehun keehun is offline
Team Captain
AKA: Keehun Nam
FRC #2502 (EP Robotics)
Team Role: Leadership
 
Join Date: May 2008
Rookie Year: 2008
Location: Eden Priaire
Posts: 474
keehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond repute
Send a message via AIM to keehun
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.
__________________
For by grace you have been saved through faith, and that not of yourselves; it is the gift of God, not of works, lest anyone should boast. -- Ephesians 2:8-9
2010: Quarter Finalist (MN 10,000 Lakes)
2010: Website Award (MN 10,000 Lakes)
2009: Quarter Finalist (MN 10,000 Lakes)
2009: GM Industrial Award (MN 10,000 Lakes)
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
two solenoids on one spike? Chara09 Pneumatics 6 26-01-2008 20:38
One or Two Wheel Shooter Nitroxextreme Technical Discussion 6 14-01-2006 01:10
[ECDU]:one or two Michael Leicht FIRST-related Organizations 16 09-12-2004 07:23
Multiple version of Inventor on one computer sanddrag Inventor 4 30-11-2004 13:31
one control stick or two? 346operator Technical Discussion 24 12-08-2004 09:59


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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