Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
120
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.63 KB | None
  1. socket = new Socket(IP, PORT);
  2. back = new Socket(IP, p(PORT));
  3. reader = new BufferedReader(new InputStreamReader(socket.getInputStream()));
  4. writer = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));
  5. if(forgotPw) {
  6.     reder = new BufferedReader(new InputStreamReader(back.getInputStream()));
  7.     writter = new BufferedWriter(new OutputStreamWriter(back.getOutputStream()));
  8.     if(password.length() > 0)
  9.         writter.write(username + ":" + password);
  10.     else
  11.         writter.write(username);
  12.         writter.newLine();
  13.         writter.flush();
  14.     }
  15. writer.write(username);
  16. writer.newLine();
  17. writer.flush();
Advertisement
RAW Paste Data Copied
Advertisement