示例#1
0
        /// <summary>
        ///   Add a StreamHost
        /// </summary>
        /// <param name="jid"> </param>
        /// <param name="host"> </param>
        /// <returns> </returns>
        public StreamHost AddStreamHost(Jid jid, string host)
        {
            var sh = new StreamHost(jid, host);

            AddChild(sh);
            return(sh);
        }
示例#2
0
        /// <summary>
        ///   Add a StreamHost
        /// </summary>
        /// <param name="jid"> </param>
        /// <param name="host"> </param>
        /// <param name="port"> </param>
        /// <param name="zeroconf"> </param>
        /// <returns> </returns>
        public StreamHost AddStreamHost(Jid jid, string host, int port, string zeroconf)
        {
            var sh = new StreamHost(jid, host, port, zeroconf);

            AddChild(sh);
            return(sh);
        }
示例#3
0
        /// <summary>
        ///   Add a StreamHost
        /// </summary>
        /// <returns> </returns>
        public StreamHost AddStreamHost()
        {
            var sh = new StreamHost();

            AddChild(sh);
            return(sh);
        }
示例#4
0
        /// <summary>
        ///   Get the list of streamhosts
        /// </summary>
        /// <returns> </returns>
        public StreamHost[] GetStreamHosts()
        {
            ElementList nl    = SelectElements(typeof(StreamHost));
            var         hosts = new StreamHost[nl.Count];
            int         i     = 0;

            foreach (Element e in nl)
            {
                hosts[i] = (StreamHost)e;
                i++;
            }
            return(hosts);
        }
示例#5
0
 /// <summary>
 ///   Add a StreamHost
 /// </summary>
 /// <param name="sh"> </param>
 /// <returns> </returns>
 public StreamHost AddStreamHost(StreamHost sh)
 {
     AddChild(sh);
     return(sh);
 }
示例#6
0
 /// <summary>
 ///   Get the list of streamhosts
 /// </summary>
 /// <returns> </returns>
 public StreamHost[] GetStreamHosts()
 {
     ElementList nl = SelectElements(typeof (StreamHost));
     var hosts = new StreamHost[nl.Count];
     int i = 0;
     foreach (Element e in nl)
     {
         hosts[i] = (StreamHost) e;
         i++;
     }
     return hosts;
 }
示例#7
0
 /// <summary>
 ///   Add a StreamHost
 /// </summary>
 /// <param name="jid"> </param>
 /// <param name="host"> </param>
 /// <param name="port"> </param>
 /// <param name="zeroconf"> </param>
 /// <returns> </returns>
 public StreamHost AddStreamHost(Jid jid, string host, int port, string zeroconf)
 {
     var sh = new StreamHost(jid, host, port, zeroconf);
     AddChild(sh);
     return sh;
 }
示例#8
0
 /// <summary>
 ///   Add a StreamHost
 /// </summary>
 /// <param name="jid"> </param>
 /// <param name="host"> </param>
 /// <returns> </returns>
 public StreamHost AddStreamHost(Jid jid, string host)
 {
     var sh = new StreamHost(jid, host);
     AddChild(sh);
     return sh;
 }
示例#9
0
 /// <summary>
 ///   Add a StreamHost
 /// </summary>
 /// <param name="sh"> </param>
 /// <returns> </returns>
 public StreamHost AddStreamHost(StreamHost sh)
 {
     AddChild(sh);
     return sh;
 }
示例#10
0
 /// <summary>
 ///   Add a StreamHost
 /// </summary>
 /// <returns> </returns>
 public StreamHost AddStreamHost()
 {
     var sh = new StreamHost();
     AddChild(sh);
     return sh;
 }