MRFramework/src/main/java/com/mr/net/MasterServer.java
/**
	 * Starts the master server on port 7077
	 * Creates threads for each listening socket accepted.
	 *  
	 * @throws IOException
	 */
Starts the master server on port 7077
Creates threads for each listening socket accepted.


Starts the master server on port 7077 Creates threads for each listening socket accepted .
public void startServer() throws IOException {
		ServerSocket serverSocket = null;
		try {
			serverSocket = new ServerSocket(7077);
			logger.info("Waiting for client on port " + serverSocket.getLocalPort() + "...");
			while(listeningSocket){
				Socket serviceSocket = serverSocket.accept();
				MasterMiniServer miniserver = new MasterMiniServer(serviceSocket, this);
				miniserver.start();
			}
			serverSocket.close();
		} catch (IOException e) {
			logger.error("Could not listen on port: 7077");
			logger.error(e.getLocalizedMessage());
		}		
	}
public void startServer ( ) throws IOException { ServerSocket serverSocket = null ; try { serverSocket = new ServerSocket ( 7077 ) ; logger . info ( "Waiting for client on port " + serverSocket . getLocalPort ( ) + "..." ) ; while ( listeningSocket ) { Socket serviceSocket = serverSocket . accept ( ) ; MasterMiniServer miniserver = new MasterMiniServer ( serviceSocket , this ) ; miniserver . start ( ) ; } serverSocket . close ( ) ; } catch ( IOException e ) { logger . error ( "Could not listen on port: 7077" ) ; logger . error ( e . getLocalizedMessage ( ) ) ; } }
Starts the master server on port 7077
 Creates threads for each listening socket accepted.
Starts the master server on port 7077 Creates threads for each listening socket accepted .
// 3. Start Server