ide/src/wombat/gui/text/sta/STAServerConnection.java
public void run() {
		if (SharedTextArea.NETWORK_DEBUG)
			System.out.println("SCT running");
		
		while (ST.STA.Running) {
			if (FromClient.hasNextLine()) {
				String msg = FromClient.nextLine();
				
				if (SharedTextArea.NETWORK_DEBUG) {
					int i = 0;
					for (STAServerConnection ea : ST.Clients) {
						if (this == ea) 
							System.out.println("SCT:" + i + " recv: " + msg);
						i++;
					}
				}
				
				ST.relay(this, msg);
			}
		}
		
		try {
			ToClient.close();
			FromClient.close();
			C.close();
		} catch(Exception e) {
		}
		
		if (SharedTextArea.NETWORK_DEBUG)
			System.out.println("SCT stopping");
	}
/**
	 * Run the server client thread.
	 */
Run the server client thread.
Run the server client thread .
public void run() {
		if (SharedTextArea.NETWORK_DEBUG)
			System.out.println("SCT running");
		while (ST.STA.Running) {
			if (FromClient.hasNextLine()) {
				String msg = FromClient.nextLine();
				if (SharedTextArea.NETWORK_DEBUG) {
					int i = 0;
					for (STAServerConnection ea : ST.Clients) {
						if (this == ea) 
							System.out.println("SCT:" + i + " recv: " + msg);
						i++;
					}
				}
				ST.relay(this, msg);
			}
		}
		try {
			ToClient.close();
			FromClient.close();
			C.close();
		} catch(Exception e) {
		}
		if (SharedTextArea.NETWORK_DEBUG)
			System.out.println("SCT stopping");
	}
public void run ( ) { if ( SharedTextArea . NETWORK_DEBUG ) System . out . println ( "SCT running" ) ; while ( ST . STA . Running ) { if ( FromClient . hasNextLine ( ) ) { String msg = FromClient . nextLine ( ) ; if ( SharedTextArea . NETWORK_DEBUG ) { int i = 0 ; for ( STAServerConnection ea : ST . Clients ) { if ( this == ea ) System . out . println ( "SCT:" + i + " recv: " + msg ) ; i ++ ; } } ST . relay ( this , msg ) ; } } try { ToClient . close ( ) ; FromClient . close ( ) ; C . close ( ) ; } catch ( Exception e ) { } if ( SharedTextArea . NETWORK_DEBUG ) System . out . println ( "SCT stopping" ) ; }
Run the server client thread.
Run the server client thread .