public void send(byte[] toSend) {
    
        if (toSend.length > 0) {
            try {
//                byte[] toSendtmp = toSend.getBytes(Encoding);
                DatagramPacket dp = new DatagramPacket(toSend, toSend.length, ia, port);
                //_logger.finest("Sending string: " + toSend+ "; Number of bytes: "+toSend.getBytes().length);
                csocket.send(dp);
            } catch (Exception e) {
                System.out.println("Connection Send:" + e);
                _logger.severe(" Error sending string: " + e.getMessage());
            }
        }
    }