Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2008

Tip: Looking for answers? Try searching our database.

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

Thread view: 
islamelnaggar - 13 Jan 2008 12:25 GMT
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
Christian - 13 Jan 2008 12:34 GMT
islamelnaggar schrieb:
> hello java guys
> beginners and experts
[quoted text clipped - 7 lines]
>
> 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...
islamelnaggar - 14 Jan 2008 00:10 GMT
> islamelnaggarschrieb:
>
[quoted text clipped - 19 lines]
> presens of NAT .. with UDP both clients need their ports forwarded ...
> with tcp only one...

thanksfor u reply
any anthor suggestion??

regards
Lew - 14 Jan 2008 00:17 GMT
islamelnaggarschrieb:
>>> hello java guys

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 wrote:
>> For text based chat the answer is clearly tcp.
>> For voice chat it depends of your encoding... if for example you are
[quoted text clipped - 5 lines]
>> 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?

Signature

Lew

islamelnaggar - 14 Jan 2008 00:21 GMT
> islamelnaggarschrieb:
>
[quoted text clipped - 31 lines]
>
> - Show quoted text -

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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.