import java.io.*;
import java.net.*;
import java.util.*;

public class daemon
{
	public static void main ( String[] args ) throws IOException {

		ServerSocket ss = null;

		try {
			ss = new ServerSocket( 1234 );
			System.out.println("Start...");
		} catch ( IOException e) {
			System.out.println("Couldn't listen on port 1234");
			System.exit(-1);
		}

		while ( true ) {
			Socket s = ss.accept();
//			System.out.println( s.toString() );
			sThread st = new sThread( s );
			st.start();
		}
	}
}

