public void sendBytes(byte[] bytes) {
		Socket socket = null;
		try {
			socket = new Socket(host, port);
			socket.getOutputStream().write(bytes);
			socket.close();
		}
		catch (IOException ioe) {
			throw new IllegalStateException(ioe.getMessage(), ioe);
		}
		finally {
			try {
				if (socket != null) {
					socket.close();
				}
			}
			catch (IOException ioe) {
			}
		}
	}
Sends TCP 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/SyslogTcpSource.java