private void send ( byte [ ] msg , DatagramSocket socket , InetAddress destination , int port ) throws Exception { if ( EventUtils . isEmptyOrNull ( msg ) ) { return ; } if ( LOGGER . isDebugEnabled ( ) ) { LOGGER . debug ( "Auditing to " + destination . getHostAddress ( ) + ":" + port ) ; } if ( LOGGER . isDebugEnabled ( ) ) { LOGGER . debug ( new String ( msg ) ) ; } DatagramPacket packet = new DatagramPacket ( msg , getBufferLength ( msg ) , destination , port ) ; socket . send ( packet ) ; }
Send a byte buffer to a designated destination address and port using the datagram socket specified .