コード例 #1
0
 public async Task SendAsync(IPEndPoint endPoint, LowLevelPacket packet)
 {
     byte[] buf = packet.Encode();
     await _client.SendAsync(buf, buf.Length, endPoint);
 }
コード例 #2
0
 public void Send(IPEndPoint endPoint, LowLevelPacket packet)
 {
     byte[] buf = packet.Encode();
     _client.Send(buf, buf.Length, endPoint);
 }