Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- do {
- name = JOptionPane.showInputDialog(null, "input name", "");
- //send checkname
- send("CHECKNAME=="+name);
- System.out.println("sendname");
- do{
- try {
- //System.out.println("wait recieve");
- socket.receive(packet);
- rec = true;
- } catch (Exception ioe) {/* lazy exception handling :) */
- }
- }while(!rec);
- serverData = new String(buf);
- serverData = serverData.trim();
- System.out.println(serverData);
- } while ((name == null || name.equals("")) && !valid);
Add Comment
Please, Sign In to add comment