hello.... I have a UDP problem
Hey... I want to write a little UDP game.
But I find a problem "How can I let every-client rev. the info.?"
Now...I use a stupit way....
I let UDP client send info or ask Server ervery times to get info?
Can server direct send the info to ervery client ?
thanks
What do you mean let client receive information?
UDP is a connectionless or message-based protocol. A process can send data anytime. If the remote process is present and can receive the data, then great. Otherwise, the remote process will miss the tranmission and receive the next packet.
Kuphryn
UDP is a connectionless or message-based protocol. A process can send data anytime. If the remote process is present and can receive the data, then great. Otherwise, the remote process will miss the tranmission and receive the next packet.
Kuphryn
Hm...where can I find the sample-source code about "a UDP mult-chat echo system?"
thanks...^_^
thanks...^_^
Please explain exactly what you want, I have never heard the term "UDP mult-chat echo system", I assume you mean UDP multichat echo system, but that still doesn't make any sense.
As for sending versius asking, that's entirerly up to you, it depends on the application/game. But generally sending the info is more often used, because then it can be sent only when updated. But on the other hand if it's some info that you need very seldom, then requesting ifor t is the better option.
Edit:
I forgot, you can of course mix both theese methods, you are not restricted to use only one of them.
[edited by - fredizzimo on May 7, 2004 4:13:32 PM]
As for sending versius asking, that's entirerly up to you, it depends on the application/game. But generally sending the info is more often used, because then it can be sent only when updated. But on the other hand if it's some info that you need very seldom, then requesting ifor t is the better option.
Edit:
I forgot, you can of course mix both theese methods, you are not restricted to use only one of them.
[edited by - fredizzimo on May 7, 2004 4:13:32 PM]
"How can I let every-client rev. the info.?"
I assume you mean, how to broadcast the information to all individual clients...
Its simple, to do this, you send the information to each of your clients... There is no broadcasting function, you just send the data once for each client, in a loop.
Looking for a serious game project?
www.xgameproject.com
I assume you mean, how to broadcast the information to all individual clients...
Its simple, to do this, you send the information to each of your clients... There is no broadcasting function, you just send the data once for each client, in a loop.
Looking for a serious game project?
www.xgameproject.com
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement