public static void netCat(String host, int port, byte[] data) throws IORuntimeException {
		OutputStream out = null;
		try (Socket socket = new Socket(host, port)) {
			out = socket.getOutputStream();
			out.write(data);
			out.flush();
		} catch (IOException e) {
			throw new IORuntimeException(e);
		} finally {
			IoUtil.close(out);
		}
	}
public static void netCat ( String host , int port , byte [ ] data ) throws IORuntimeException { OutputStream out = null ; try ( Socket socket = new Socket ( host , port ) ) { out = socket . getOutputStream ( ) ; out . write ( data ) ; out . flush ( ) ; } catch ( IOException e ) { throw new IORuntimeException ( e ) ; } finally { IoUtil . close ( out ) ; } }
使用普通Socket发送数据

@param host Server主机
@param port Server端口
@param data 数据
@throws IOException IO异常
@since 3.3.0