View Single Post
  #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)