Guest User

Untitled

a guest
Jan 17th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. do {
  2. name = JOptionPane.showInputDialog(null, "input name", "");
  3. //send checkname
  4. send("CHECKNAME=="+name);
  5. System.out.println("sendname");
  6.  
  7. do{
  8. try {
  9. //System.out.println("wait recieve");
  10. socket.receive(packet);
  11. rec = true;
  12. } catch (Exception ioe) {/* lazy exception handling :) */
  13. }
  14. }while(!rec);
  15.  
  16. serverData = new String(buf);
  17. serverData = serverData.trim();
  18.  
  19. System.out.println(serverData);
  20. } while ((name == null || name.equals("")) && !valid);
Add Comment
Please, Sign In to add comment