IUdpProxy.cs 400 B

123456789101112131415
  1. using System;
  2. using System.Net;
  3. using System.Threading.Tasks;
  4. namespace STUN.Proxy
  5. {
  6. public interface IUdpProxy : IDisposable
  7. {
  8. TimeSpan Timeout { get; set; }
  9. IPEndPoint LocalEndPoint { get; }
  10. Task ConnectAsync();
  11. Task<(byte[], IPEndPoint, IPAddress)> RecieveAsync(byte[] bytes, IPEndPoint remote, EndPoint receive);
  12. Task DisconnectAsync();
  13. }
  14. }