public HTSPClient(ClientInfo serverInfo, HTSPMonitor monitor){
		this.serverInfo = serverInfo;
		this.monitor=monitor;
		this.chan = new ClientTVChannels();
		this.tags = new ClientTags();
		this.events = new ClientEvents();
		this.subscriptions = new ClientSubscriptions(monitor);
		this.sequence = new MagicSequence();
		
		try {
			System.out.println("Connecting to: " + serverInfo.getIP() + ":" + serverInfo.getPort());
			socket = new Socket(serverInfo.getIP(), serverInfo.getPort());
			os = new BufferedOutputStream(socket.getOutputStream());
			is = new BufferedInputStream(socket.getInputStream());
		} catch (UnknownHostException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}