All pastes #493028 Raw Edit

Someone

public java v1 · immutable
·published 2007-05-17 15:39 UTC
rendered paste body
import java.net.*;import java.io.*;import java.lang.Thread;public class Server2nonStatic {	protected Thread toAGI;	protected Socket10001 agithread;	protected Socket10002 toClientthread;	protected Thread toClient;	/* Konstruktor */	public Server2nonStatic() {		this.agithread = new Socket10001();		//this.toAGI = new Thread(agithread);		//this.toAGI.start();		//this.toClientthread = new Socket10002();		//this.toClient = new Thread(toClientthread);		//this.toClient.start();				//System.out.println("Threads gestartet");	}	/* Printtestfunktion */	public void sendeCID(String wort) {		System.out.println(wort);		toClientthread.sendeCID(wort);	}	public void starteThreads() {		agithread = new Socket10001();		toAGI = new Thread(agithread);		toAGI.start();		toClientthread = new Socket10002();		toClient = new Thread(toClientthread);		toClient.start();				System.out.println("Threads gestartet");	}}