duhe
2024-09-26 372299c0aeace8ba93c1d4535eae918441d22124
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);
    }
}