home *** CD-ROM | disk | FTP | other *** search
/ All for Cell Phones: Sony Ericsson / Sony-Ericsson 2004.iso / Java / ClienteChat / Cliente Chat.jar / com / xibaro / chat / Submiter.class (.txt) < prev    next >
Encoding:
Java Class File  |  2002-04-23  |  1015 b   |  26 lines

  1. package com.xibaro.chat;
  2.  
  3. public class Submiter extends Thread {
  4.    private Conexion jefe;
  5.  
  6.    public Submiter(Conexion jefe) {
  7.       this.jefe = jefe;
  8.    }
  9.  
  10.    public void run() {
  11.       for(String datos = this.jefe.buffer((String)null); datos != null; datos = this.jefe.buffer((String)null)) {
  12.          this.jefe.incSec();
  13.  
  14.          while(this.jefe.getSec() != this.jefe.getAk()) {
  15.             this.jefe.manda(datos);
  16.  
  17.             try {
  18.                Thread.sleep(1000L);
  19.             } catch (InterruptedException var3) {
  20.             }
  21.          }
  22.       }
  23.  
  24.    }
  25. }
  26.