I am writing udp server and I can send back the data from the clients, but I do not know how to send
can you help me
10 Replies
What's the problem with that code?
I cannot send data to all clients
It just sends the data back to the client from which it received it.
Yes, that's what it does
If you want to send data to all clients, you need to keep track of all clients (which isn't easy with UDP, as there's no concept of a "connection", and so no way to tell when a client has disconnected), and then send the data to all of the clients, with multiple calls to Send
can you show an example
No, but there will be plenty online as this is a common beginner task
Search for "udp chat server" or similar
I couldn't find it on stackowerflow
hmm let me see
Yeah you don't tend to find tutorials on SO
what does it mean so
my English is bad
StackOverflow
oww okeyy
thx
@canton7 I seriously couldn't find it
My English is bad, I don't understand very well, I need help.