PDA

Click to See Complete Forum and Search --> : Multiple user chat using UDP


god_69
Aug 19th, 2005, 06:16 PM
Hey there!

Alright, what I am basicly trying to do is to make a server/multiple client chat-like program, but using UDP... And no, i can't use TCP, it's a school project ;), but I have no ideas how to do it ... I do for TCP, but not for UDP :blush: ... so any help here would be apreciated !

thks !
JP

MalcolmCarmen
Aug 20th, 2005, 03:49 PM
What language and socket type are you using?

TCP requires a connection as you may know, but UDP requires no connection at all, you send your data right out. UDP packets may be lost or arrive in an odd order since they don't have the checking that is associated with TCP.

If you are using a winsock-like object, just make sure to bind to a local port, then send or listen for data, no need to .connect("bleh.com",80) or anything.

god_69
Aug 23rd, 2005, 01:36 PM
Yes, that's the problem, since there is no connection thing in UDP, i just can't find a way to make this work... any source codes or site or anything would be nice ...

Thks!