Help with programming a chat program. (Urgent)

Reply

Join Date: Feb 2006
Posts: 2
Reputation: viperz_d is an unknown quantity at this point 
Solved Threads: 0
viperz_d viperz_d is offline Offline
Newbie Poster

Help with programming a chat program. (Urgent)

 
0
  #1
Feb 4th, 2006
Hello, I'm new here,
Can anyone help me? I'm trying to make a chat program. Like that of winchat. I'm planning something like a serverless type. Any help would be appreciated.
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 6
Reputation: zillabunny is an unknown quantity at this point 
Solved Threads: 1
zillabunny zillabunny is offline Offline
Newbie Poster

Re: Help with programming a chat program. (Urgent)

 
0
  #2
Feb 6th, 2006
ok first you'd need to establish a peer to peer connection
then you'd need to pass strings back and forth between that connection

hope that helps =P
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 31
Reputation: AlanC is an unknown quantity at this point 
Solved Threads: 1
AlanC's Avatar
AlanC AlanC is offline Offline
Light Poster

Re: Help with programming a chat program. (Urgent)

 
0
  #3
Feb 6th, 2006
Hi

You probably know all this already and forgive me if so but normally a central server manages the clients and connections; it's IP could be distributed with the clients and they then connect to the server rather than each other.

In a pure peer-to-peer network, which is what your serverless chat is, the clients (or, more correctly, peers) don't know who to connect to. So how do they discover each other? The obvious way is for peers to broadcast UDP packets (sent to 255.255.255.255), and listen for these from other peers. A list of IP's discovered can be maintained, and the user can then initiate direct TCP connections (on a different port) to one or more of these.

Here are some snags:
* UDP is a 'fire and forget' protocol- you don't how far your packet got.
* UDP broadcasts are normally blocked by firewalls, unless you explicitly open up the port for UDP (not recommended for security).

The good news is, the basic mechanism of text chat using the Winsock control is fairly easy.

Could be an interesting challenge!

Regards,
AlanC
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 6
Reputation: zillabunny is an unknown quantity at this point 
Solved Threads: 1
zillabunny zillabunny is offline Offline
Newbie Poster

Re: Help with programming a chat program. (Urgent)

 
0
  #4
Feb 6th, 2006
heh that was a much better answer than mine
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 1
Reputation: kenny.ganta is an unknown quantity at this point 
Solved Threads: 0
kenny.ganta kenny.ganta is offline Offline
Newbie Poster

Re: Help with programming a chat program. (Urgent)

 
0
  #5
Apr 30th, 2008
how to write a code for a quick time player in java using udp and play a video streaming from the server .
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 31
Reputation: CzechRock3 is an unknown quantity at this point 
Solved Threads: 2
CzechRock3's Avatar
CzechRock3 CzechRock3 is offline Offline
Light Poster

Re: Help with programming a chat program. (Urgent)

 
0
  #6
May 1st, 2008
If this is just for a small group of people using winsock you can have one person host a server then have your friends connect to that server with clients using winsock
im a zombie killer
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC