/// <summary> /// 发送数据报文 /// </summary> /// <param name="dataGram">数据报文</param> public void Send(byte[] dataGram) { AppUpdClient.Send(dataGram, dataGram.Length); }
/// <summary> /// 发送数据报文 /// </summary> /// <param name="message">数据报文</param> public void Send(string message) { var dataGram = Encoding.UTF8.GetBytes(message); AppUpdClient.Send(dataGram, dataGram.Length); }
/// <summary> /// 回复终端数据报文 /// </summary> /// <param name="datagram">数据报文</param> /// <param name="endpoint">终端信息</param> public void Reply(byte[] datagram, IPEndPoint endpoint) { AppUpdClient.Send(datagram, datagram.Length, endpoint); }
/// <summary> /// 回复终端数据报文 /// </summary> /// <param name="message">数据报文</param> /// <param name="endpoint">终端信息</param> public void Reply(string message, IPEndPoint endpoint) { byte[] _datagram = Encoding.UTF8.GetBytes(message); AppUpdClient.Send(_datagram, _datagram.Length, endpoint); }
/// <summary> /// 回复终端数据报文 /// </summary> /// <param name="message">数据报文</param> /// <param name="endpoint">终端信息</param> public void Reply(string message, IPEndPoint endpoint) { var dataGram = Encoding.UTF8.GetBytes(message); AppUpdClient.Send(dataGram, dataGram.Length, endpoint); }
/// <summary> /// 发送数据报文 /// </summary> /// <param name="message">数据报文</param> public void Send(string message) { byte[] _datagram = Encoding.UTF8.GetBytes(message); AppUpdClient.Send(_datagram, _datagram.Length); }