TcpDelegate.cs 855 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace Azylee.YeahWeb.SocketUtils.TcpUtils
  6. {
  7. /// <summary>
  8. /// Tcp 工具 委托声明
  9. /// </summary>
  10. [Obsolete]
  11. public class TcpDelegate
  12. {
  13. /// <summary>
  14. /// 接受消息委托
  15. /// </summary>
  16. /// <param name="host"></param>
  17. /// <param name="model"></param>
  18. public delegate void ReceiveMessage(string host, TcpDataModel model);
  19. /// <summary>
  20. /// Tcp 连接消息委托
  21. /// </summary>
  22. /// <param name="host"></param>
  23. public delegate void OnConnect(string host);
  24. /// <summary>
  25. /// Tcp 断开连接消息委托
  26. /// </summary>
  27. /// <param name="host"></param>
  28. public delegate void OnDisconnect(string host);
  29. }
  30. }