IChannelSender.cs 507 B

1234567891011121314151617181920
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Taobao.Top.Link.Channel
  5. {
  6. /// <summary>a channel used to sending message
  7. /// </summary>
  8. public interface IChannelSender
  9. {
  10. /// <summary>send bytes
  11. /// </summary>
  12. /// <param name="data"></param>
  13. void Send(byte[] data);
  14. /// <summary>close channel with given reason
  15. /// </summary>
  16. /// <param name="reason"></param>
  17. void Close(string reason);
  18. }
  19. }