Exemplo n.º 1
0
        /// <summary>
        /// 创建一个新Session
        /// </summary>
        public void Connect(string address)
        {
            AChannel channel = this.Service.ConnectChannel(address);

            Session = new Session(channel);
            Session.Start();
        }
Exemplo n.º 2
0
        /// <summary>
        /// 创建一个新Session
        /// </summary>
        public void Connect(IPEndPoint ipEndPoint)
        {
            AChannel channel = this.Service.ConnectChannel(ipEndPoint);

            Session = new Session(channel);
            Session.Start();
        }