You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

IStrategy.cs 621 B

123456789101112131415161718192021222324252627282930
  1. using Shadowsocks.Model;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Net;
  5. using System.Text;
  6. namespace Shadowsocks.Controller.Strategy
  7. {
  8. public enum IStrategyCallerType
  9. {
  10. TCP,
  11. UDP
  12. }
  13. public interface IStrategy
  14. {
  15. string Name { get; }
  16. string ID { get; }
  17. Server GetAServer(IStrategyCallerType type, IPEndPoint localIPEndPoint);
  18. void UpdateLatency(Server server);
  19. void UpdateLastRead(Server server);
  20. void UpdateLastWrite(Server server);
  21. void SetFailure(Server server);
  22. }
  23. }