using System; using System.Collections.Generic; using System.Text; namespace Taobao.Top.Link.Channel { /// the channel that client connect to server /// public interface IClientChannel : IChannelSender { /// while message received on this channel /// EventHandler OnMessage { get; set; } /// while error occur on this channel /// EventHandler OnError { get; set; } /// while channel was closed by given reason /// EventHandler OnClosed { get; set; } /// get or set remote uri /// Uri Uri { get; set; } /// weather the channel is valid /// bool IsConnected { get; } /// timer for heartbeat if set /// ResetableTimer HeartbeatTimer { set; } } }