Example #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);
        }
Example #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);
        }
Example #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;
 }
Example #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;
 }