having trouble making messenger
-
Protocol wise, I think UDP is better for Messengers as they are fast. For the source look up the Internet and Networking section of our own codeProject. You will definately find a lot of examples there. :) Cheers... --- With best regards, A Manchester United Fan The Genius of a true fool is that he can mess up a foolproof plan!
Save My Soul - (SMS) wrote:
Protocol wise, I think UDP is better for Messengers as they are fast.
You really want users coming to you screaming where their messages went? No, just use TCP. xacc.ide-0.1.1 released! :) Download and screenshots
-
Save My Soul - (SMS) wrote:
Protocol wise, I think UDP is better for Messengers as they are fast.
You really want users coming to you screaming where their messages went? No, just use TCP. xacc.ide-0.1.1 released! :) Download and screenshots
I believe that most of the messengers use UDP for communication! Or am I wrong? :confused: But still, yes, UDP is unreliable whereas TCP is. So I guess its a choice between speed and reliability.. :) --- With best regards, A Manchester United Fan The Genius of a true fool is that he can mess up a foolproof plan!
-
Protocol wise, I think UDP is better for Messengers as they are fast. For the source look up the Internet and Networking section of our own codeProject. You will definately find a lot of examples there. :) Cheers... --- With best regards, A Manchester United Fan The Genius of a true fool is that he can mess up a foolproof plan!
Save My Soul - (SMS) wrote:
Protocol wise, I think UDP is better for Messengers as they are fast.
:wtf: It's a chat application! Who cares about the .0005 seconds faster the 1 or 2 message packets would take get there! In a chat app, reliablility is better than the negligable "speed" gain you get. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
Save My Soul - (SMS) wrote:
Protocol wise, I think UDP is better for Messengers as they are fast.
:wtf: It's a chat application! Who cares about the .0005 seconds faster the 1 or 2 message packets would take get there! In a chat app, reliablility is better than the negligable "speed" gain you get. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
Is your app communicating over the web or just a lan. If communicating over the web you may want to read up on SOAP web services.... i myself have been working on a messenger app i have gotten pretty far but not a client/server app each node is sort of a client and server itself.
-
Save My Soul - (SMS) wrote:
Protocol wise, I think UDP is better for Messengers as they are fast.
:wtf: It's a chat application! Who cares about the .0005 seconds faster the 1 or 2 message packets would take get there! In a chat app, reliablility is better than the negligable "speed" gain you get. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
Ok, Ok.... Use TCP.... Look, I just read somewhere that chat Apps usually use UDP for communication, OK. :sigh: --- With best regards, A Manchester United Fan The Genius of a true fool is that he can mess up a foolproof plan!
-
Is your app communicating over the web or just a lan. If communicating over the web you may want to read up on SOAP web services.... i myself have been working on a messenger app i have gotten pretty far but not a client/server app each node is sort of a client and server itself.
I agree. This way seem much more logical.....:) --- With best regards, A Manchester United Fan The Genius of a true fool is that he can mess up a foolproof plan!
-
Is your app communicating over the web or just a lan. If communicating over the web you may want to read up on SOAP web services.... i myself have been working on a messenger app i have gotten pretty far but not a client/server app each node is sort of a client and server itself.
What it when clicking the Reply link! Make sure your replying to the correct post. I'm not the one writing a chat app... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
Ok, Ok.... Use TCP.... Look, I just read somewhere that chat Apps usually use UDP for communication, OK. :sigh: --- With best regards, A Manchester United Fan The Genius of a true fool is that he can mess up a foolproof plan!
That's true, most of them do. But in the OP's requirements, reliable delivery requires TCP, because UDP doesn't guarantee that the packets will make it to the recipient, let alone in the orrect order. Read up on the protocols before you start making recommendations about their use! :) RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
That's true, most of them do. But in the OP's requirements, reliable delivery requires TCP, because UDP doesn't guarantee that the packets will make it to the recipient, let alone in the orrect order. Read up on the protocols before you start making recommendations about their use! :) RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
I did know that UDP was unreliable but didn't know that it was unreliable to this extent that we couldn't trust it. Thanks for pointing that out.:) If UDP is so unreliable, why the hell is it there and what type of applications use it?? --- With best regards, A Manchester United Fan The Genius of a true fool is that he can mess up a foolproof plan!
-
I did know that UDP was unreliable but didn't know that it was unreliable to this extent that we couldn't trust it. Thanks for pointing that out.:) If UDP is so unreliable, why the hell is it there and what type of applications use it?? --- With best regards, A Manchester United Fan The Genius of a true fool is that he can mess up a foolproof plan!
Save My Soul - (SMS) wrote:
If UDP is so unreliable, why the hell is it there and what type of applications use it??
Streaming media. UDP is connectionless, so you don't expect any acknowledgements back from the client, or multiple clients in broadcast. There are no retrys on packets that are lost since the send never gets notified that they've been dropped or recieved out of order. Since this is where TCP gets "bogged down", if you could call it that, UDP is a little faster. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome