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