public void envia(String msg){
		//byte[] message = msg.getBytes();
		
		try {

			/*ByteBuffer*/ outData = encoder.encode(CharBuffer.wrap(msg));
			
			InetAddress address = InetAddress.getByName(host);
			DatagramPacket packet = new DatagramPacket(outData.array(), outData.capacity(), address, port);
			udpSocket.send(packet);

			outData.flip();
			outData.clear();

		} catch (UnknownHostException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}