public static void main(String[] args) throws Exception {

		// lineProtocol = "localhost;localhost;A;APPL;50;20!" +'\n';
		socket = new Socket("localhost", 9999);

		toServer = new DataOutputStream( // Datastream FROM Server
				socket.getOutputStream());

		fromServer = new BufferedReader( // Datastream TO Server
				new InputStreamReader(socket.getInputStream()));
		int count = 0;
		while (count<=60) { 
			Thread.sleep(1000);
			sendRequest();// Send requests while connected
			receiveResponse(); // Process server's answer
			count++;
		}
		socket.close();
		toServer.close();
		fromServer.close();
	}