Ejemplo n.º 1
0
        /// <summary>
        /// Parses the specified reader.
        /// </summary>
        /// <param name="reader">The reader.</param>
        /// <param name="source">The source.</param>
        /// <param name="destination">The destination.</param>
        /// <returns></returns>
        public static SsdpMessage Parse(TextReader reader, IPEndPoint source, IPEndPoint destination)
        {
            var message = new SsdpMessage(true, source, destination);

            message.FromStream(reader);
            return(message);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Parses the specified reader.
        /// </summary>
        /// <param name="reader">The reader.</param>
        /// <param name="endPoint">The end point.</param>
        /// <returns></returns>
        public static SsdpMessage Parse(TextReader reader, IPEndPoint endPoint)
        {
            var message = new SsdpMessage(endPoint);

            message.FromStream(reader);
            return(message);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Parses the specified reader.
 /// </summary>
 /// <param name="reader">The reader.</param>
 /// <param name="endPoint">The end point.</param>
 /// <returns></returns>
 public static SsdpMessage Parse(TextReader reader, IPEndPoint endPoint)
 {
     var message = new SsdpMessage(endPoint);
     message.FromStream(reader);
     return message;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Parses the specified reader.
 /// </summary>
 /// <param name="reader">The reader.</param>
 /// <param name="source">The source.</param>
 /// <param name="destination">The destination.</param>
 /// <returns></returns>
 public static SsdpMessage Parse(TextReader reader, IPEndPoint source, IPEndPoint destination)
 {
     var message = new SsdpMessage(true, source, destination);
     message.FromStream(reader);
     return message;
 }