コード例 #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);
        }
コード例 #2
0
ファイル: SsdpMessage.cs プロジェクト: johnduhart/Upnp
        /// <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);
        }
コード例 #3
0
ファイル: SsdpMessage.cs プロジェクト: johnduhart/Upnp
 /// <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;
 }
コード例 #4
0
ファイル: SsdpMessage.cs プロジェクト: kthompson/Upnp
 /// <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;
 }