2 * Created on Jul 24, 2004
4 * To change the template for this generated file go to
5 * Window>Preferences>Java>Code Generation>Code and Comments
7 package net.sourceforge.phpeclipse.phpunit;
9 import java.net.ServerSocket;
10 import java.net.Socket;
13 * @author Ali Echihabi
15 * To change the template for this generated type comment go to
16 * Window>Preferences>Java>Code Generation>Code and Comments
18 public class ConnectionListener extends Thread {
20 private ServerSocket sSocket = null;
21 private Socket serviceSocket = null;
22 private PHPUnitView view;
25 public void start(PHPUnitView view) {
35 //reportArea.append("listening at port 12345");
37 sSocket = new ServerSocket(12345);
39 // accept connection from test reporter.
40 serviceSocket = sSocket.accept();
42 (new ReportListener(serviceSocket, this.view)).start();
46 } catch (Exception e) {
54 public static void main(String[] args) {
56 (new ConnectionListener()).start(new PHPUnitView());