public void sendBytes(byte[] bytes) {
		DatagramSocket clientSocket = null;
		try {
			clientSocket = new DatagramSocket();

			InetAddress IPAddress = InetAddress.getByName(host);
			DatagramPacket sendPacket =
					new DatagramPacket(bytes, bytes.length, IPAddress, port);
			clientSocket.send(sendPacket);
			clientSocket.close();
		}
		catch (SocketException se) {
			throw new IllegalStateException(se.getMessage(), se);
		}
		catch (IOException ioe) {
			throw new IllegalStateException(ioe.getMessage(), ioe);
		}
		finally {
			if (clientSocket != null) {
				clientSocket.close();
			}
		}

	}
Sends UDP traffic to a syslog source host and port.

@param bytes the data to be sent.
spring-xd-test-fixtures/src/main/java/org/springframework/xd/test/fixtures/SyslogUdpSource.java