Example #1
0
 /// <summary>
 /// 发送数据
 /// </summary>
 /// <param name="data">数据</param>
 /// <param name="offset">偏移位</param>
 /// <param name="length">长度</param>
 public void Send(byte[] data, int offset, int length)
 {
     tcpClients.Send(data, offset, length);
 }
Example #2
0
 /// <summary>
 /// 发送数据
 /// </summary>
 /// <param name="data">数据</param>
 /// <param name="offset">偏移位</param>
 /// <param name="length">长度</param>
 public void Send(byte[] data, int offset, int length)
 {
     data = AddHead(data.Skip(offset).Take(length).ToArray());
     tcpClients.Send(data, 0, data.Length);
 }