ITcpProxy.cs 430 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace SKMC.Api.Common.Tcp
  7. {
  8. /// <summary>
  9. /// TCP转发代理
  10. /// </summary>
  11. public interface ITcpProxy
  12. {
  13. void SetLocal(string localHost, int localPort);
  14. void SetTarget(string targetHost, int targetPort);
  15. void Listen(int size);
  16. void Close();
  17. }
  18. }