Exemplo n.º 1
0
        /// <summary>
        /// Send data to server without waiting return
        /// </summary>
        /// <param name="content">the data to send</param>
        /// <returns></returns>
        public bool CallServer(NetworkContent content)
        {
            if (null == m_client || null == content)
                return false;

            this.ErrorMessage = null;

            return Host.SendData(m_client, content.GetBinary());
        }
Exemplo n.º 2
0
        /// <summary>
        /// Call client without waiting for return
        /// </summary>
        /// <param name="ri">client information</param>
        /// <param name="content">data to send</param>
        /// <returns></returns>
        public bool CallClient(RemoteInformation ri, NetworkContent content)
        {
            if (null == ri || null == content)
                return false;

            return Host.SendData(ri.Connection, content.GetBinary());
        }