public static void main(String[] args){
		Socket connection = null;
		VSObjectConnection handler = null;

		String hostname = "localhost";
		if(args != null && args.length > 0)
			hostname = args[0];
		try{
			connection = new Socket(hostname, 11722);
			handler = new VSObjectConnection(connection);
		}
		catch( UnknownHostException e){
			System.err.println("Hostname unknown");
			System.exit(1);
		}
		catch( IOException e){
			System.err.println("Couldn't get IO");
			e.printStackTrace();
			System.exit(1);
		}

		//Objects to be transmitted:
		VSTestMessage msg0 = new VSTestMessage();
		VSTestMessage msg1 = new VSTestMessage(42,"FooBar",new Object[] {"Darleks:","Exterminate!",77});

		System.out.println("Sende ");
		try{
			handler.sendObject(msg0);
			handler.receiveObject();
			System.out.println("msg0 received!");

			handler.sendObject(msg1);
			handler.receiveObject();
			System.out.println("msg1 received!");
		}
		catch(IOException e){
			e.printStackTrace();
		}
		catch(ClassNotFoundException e){
			e.printStackTrace();
		}


		try{
			connection.close();
		}
		catch(IOException e){
			e.printStackTrace();
		}

	}