Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. public static void sendInfo(String name, String message) throws IOException {
  2.  
  3. DataOutputStream dOut = new DataOutputStream(clientSocket.getOutputStream());
  4. dOut.writeUTF("[" + name + "] " + message);
  5. dOut.flush();
  6.  
  7. dOut.close();
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement