Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void run() {
- do { // procesar los mensajes enviados por el cliente
- try {
- // procesar los mensajes enviados por el cliente
- // leer el mensaje y mostrarlo en pantalla
- punto = (Point) entrada.readObject();
- validarMover(punto);
- System.out.println( punto.x+","+punto.y);
- } catch (IOException ex) {
- Logger.getLogger(Servidor.class.getName()).log(Level.SEVERE, null, ex);
- } catch (ClassNotFoundException ex) {
- Logger.getLogger(Servidor.class.getName()).log(Level.SEVERE, null, ex);
- }
- } while ( true );
- }
- }
- }
- Hola
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement