Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int send(int id, String message) {
- if (message != null) {
- for (Connection c : connections) {
- if (c != null) {
- if (c.getID() == id) {
- c.send(message);
- return 1; //Success
- }
- }
- }
- }
- return 0; //Mottagare hittades ej
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement