IClinet.cs 530 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Net.Sockets;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace Edge.Core.Processor.Communicator
  8. {
  9. public interface IClinet
  10. {
  11. /// <summary>
  12. /// 获取链接客户端
  13. /// </summary>
  14. /// <returns></returns>
  15. TcpClient? GetTcpClient();
  16. /// <summary>
  17. /// 获取连接的服务端端口
  18. /// </summary>
  19. /// <returns></returns>
  20. int GetServerPort();
  21. }
  22. }