抽出IService和IChannel接口,用TCP实现TService TChannel, UDP实现UService UChannel,可以非常方便切换TCP和UDP协议