public void init() throws IOException {
		SocketChannel channel = SocketChannel.open();
		System.out.println("Client Launched!");
		
		//We open this channel in non-blocking mode
		channel.configureBlocking(false);
		channel.connect(new InetSocketAddress(host, port));
		
		while(!channel.finishConnect()) {
			System.out.println("Still connecting"); //might spam
		}
		
		while(true) {
			//See if any messages have been received
			ByteBuffer bufferA = ByteBuffer.allocate(20);
			int count = 0;
			String message = "";
			while((count = channel.read(bufferA)) > 0) {
				//Flip the buffer to start reading
				bufferA.flip();
				message += Charset.defaultCharset().decode(bufferA);
			}
			
			if(message.length() > 0) {
				System.out.println(message);
				
				//Write some data into the channel
				CharBuffer buffer = CharBuffer.wrap("Hello Server");
				while(buffer.hasRemaining()) {
					channel.write(Charset.defaultCharset().encode(buffer));
					
				}
				
				message = ""; //Clears the message string
			}
		}
	}