Sending data to only one client
in
Programming Questions
•
1 year ago
I've been learning processing's network library and, as the title says, I want to make it so that the server sends information to that information's one specific user. To clarify, I don't think using the .write() method to write to all the clients and then having the client only accept their own information would work because 1. I don't trust the client to not get the source code, modify it, and have it accept other people's information, and 2. If I'm not mistaken, that wastes alot of bandwidth as I have to send the data to many people who don't need it.
I considered having the users each create their own "server" and have the true server be their client, but I don't think that would work because I'm guessing the user would have to use port forwarding to make the connection which is too much to expect from the user (there might be other reasons too).
I considered having the users each create their own "server" and have the true server be their client, but I don't think that would work because I'm guessing the user would have to use port forwarding to make the connection which is too much to expect from the user (there might be other reasons too).
1