suggestion about chat s/w based protocol tcp or udp?

I

islamelnaggar

hello java guys
beginners and experts
i'm writing java application for chat
will i use udp or tcp?

or udp for voice based chat
and tcp for texted based

i'm waiting to discuss which better etc...


Regards
 
C

Christian

islamelnaggar said:
hello java guys
beginners and experts
i'm writing java application for chat
will i use udp or tcp?

or udp for voice based chat
and tcp for texted based

i'm waiting to discuss which better etc...


Regards

For text based chat the answer is clearly tcp.
For voice chat it depends of your encoding... if for example you are
encoding with mpeg-1 layer3 then you might better use tcp as every
packet must arrive. Though If you have an encoding that allows loss of
some information just resulting in some lower quality for some time ..
then it might be better to use UDP ...
Though in general I would recommend you TCP as it works better in the
presens of NAT .. with UDP both clients need their ports forwarded ...
with tcp only one...
 
I

islamelnaggar

islamelnaggarschrieb:





For text based chat the answer is clearly tcp.
For voice chat it depends of your encoding... if for example you are
encoding with mpeg-1 layer3 then you might better use tcp as every
packet must arrive. Though If you have an encoding that allows loss of
some information just resulting in some lower quality for some time ..
then it might be better to use UDP ...
Though in general I would recommend you TCP as it works better in the
presens of NAT .. with UDP both clients need their ports forwarded ...
with tcp only one...

thanksfor u reply
any anthor suggestion??

regards
 
L

Lew

islamelnaggarschrieb:
It's "Java", not "java", and not all readers of this group are "guys".
beginners and experts
i'm writing java application for chat
will i [sic] use udp or tcp?
or udp [sic] for voice based chat
and tcp [sic] for texted based
i'm waiting to discuss which better etc...
For text based chat the answer is clearly tcp.
For voice chat it depends of your encoding... if for example you are
encoding with mpeg-1 layer3 then you might better use tcp as every
packet must arrive. Though If you have an encoding that allows loss of
some information just resulting in some lower quality for some time ..
then it might be better to use UDP ...
Though in general I would recommend you TCP as it works better in the
presens of NAT .. with UDP both clients need their ports forwarded ...
with tcp only one...
thanksfor u reply

"u"? What's that?
any anthor suggestion??

Assuming you are asking for "another" suggestion, what was wrong with the
answer given?
 
I

islamelnaggar

islamelnaggarschrieb:

It's "Java", not "java", and not all readers of this group are "guys".




beginners and experts
i'm writing java application for chat
will i [sic] use udp or tcp?
or udp [sic] for voice based chat
and tcp [sic] for texted based
i'm waiting to discuss which better etc...
Christian said:
For text based chat the answer is clearly tcp.
For voice chat it depends of your encoding... if for example you are
encoding with mpeg-1 layer3 then you might better use tcp as every
packet must arrive. Though If you have an encoding that allows loss of
some information just resulting in some lower quality for some time ..
then it might be better to use UDP ...
Though in general I would recommend you TCP as it works better in the
presens of NAT .. with UDP both clients need their ports forwarded ...
with tcp only one...islamelnaggarwrote:
thanksfor u reply

"u"?  What's that?
any anthor suggestion??

Assuming you are asking for "another" suggestion, what was wrong with the
answer given?

thanks for your reply sir

but we are in technical group not in an official work-place or
whatever so both
java and Java are some "all ways are the same" :) then guys i mean all
developers both women and men
so sorry don't discuss outside main thread issue

it's not a question it's a techniqual discussion do we need to see all
developers not gurs reply
and experience here

thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top