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;
27 //reportArea.append("listening at port 12345");
29 sSocket = new ServerSocket(12345);
31 // accept connection from test reporter.
32 serviceSocket = sSocket.accept();
34 (new ReportListener(serviceSocket)).start();
38 } catch (Exception e) {
46 public static void main(String[] args) {
48 (new ConnectionListener()).start();