Commit f67e42b3 authored by Brickner_cp's avatar Brickner_cp

Warnings, Code Analysis and Documentation. 196 warnings left.

parent b59c4532
namespace PcapDotNet.Packets.Http namespace PcapDotNet.Packets.Http
{ {
/// <summary>
/// RFC 2616.
/// The Content-Length entity-header field indicates the size of the entity-body, in decimal number of OCTETs, sent to the recipient or,
/// in the case of the HEAD method, the size of the entity-body that would have been sent had the request been a GET.
/// </summary>
public class HttpContentLengthField : HttpField public class HttpContentLengthField : HttpField
{ {
/// <summary>
/// The field name.
/// </summary>
public const string Name = "Content-Length"; public const string Name = "Content-Length";
/// <summary>
/// The field name in lowercase.
/// </summary>
public const string NameLower = "content-length"; public const string NameLower = "content-length";
public HttpContentLengthField(uint contentLength) public HttpContentLengthField(uint contentLength)
......
...@@ -2,6 +2,10 @@ using System; ...@@ -2,6 +2,10 @@ using System;
namespace PcapDotNet.Packets.Http namespace PcapDotNet.Packets.Http
{ {
/// <summary>
/// RFC 2616.
/// Represents an HTTP layer.
/// </summary>
public abstract class HttpLayer : SimpleLayer, IEquatable<HttpLayer> public abstract class HttpLayer : SimpleLayer, IEquatable<HttpLayer>
{ {
public abstract bool IsRequest { get; } public abstract bool IsRequest { get; }
......
...@@ -2,6 +2,10 @@ ...@@ -2,6 +2,10 @@
namespace PcapDotNet.Packets.Http namespace PcapDotNet.Packets.Http
{ {
/// <summary>
/// RFC 2616.
/// Represents an HTTP request.
/// </summary>
public class HttpRequestDatagram : HttpDatagram public class HttpRequestDatagram : HttpDatagram
{ {
private class ParseInfo : ParseInfoBase private class ParseInfo : ParseInfoBase
......
...@@ -3,6 +3,10 @@ using System.Text; ...@@ -3,6 +3,10 @@ using System.Text;
namespace PcapDotNet.Packets.Http namespace PcapDotNet.Packets.Http
{ {
/// <summary>
/// RFC 2616.
/// Represents an HTTP request layer.
/// </summary>
public class HttpRequestLayer : HttpLayer, IEquatable<HttpRequestLayer> public class HttpRequestLayer : HttpLayer, IEquatable<HttpRequestLayer>
{ {
public override bool IsRequest { get { return true; } } public override bool IsRequest { get { return true; } }
......
...@@ -3,6 +3,10 @@ using System.Collections.Generic; ...@@ -3,6 +3,10 @@ using System.Collections.Generic;
namespace PcapDotNet.Packets.Http namespace PcapDotNet.Packets.Http
{ {
/// <summary>
/// RFC 2616.
/// Represents an HTTP response.
/// </summary>
public class HttpResponseDatagram : HttpDatagram public class HttpResponseDatagram : HttpDatagram
{ {
private class ParseInfo : ParseInfoBase private class ParseInfo : ParseInfoBase
......
...@@ -3,6 +3,10 @@ using PcapDotNet.Base; ...@@ -3,6 +3,10 @@ using PcapDotNet.Base;
namespace PcapDotNet.Packets.Http namespace PcapDotNet.Packets.Http
{ {
/// <summary>
/// RFC 2616.
/// Represents an HTTP response layer.
/// </summary>
public class HttpResponseLayer : HttpLayer, IEquatable<HttpResponseLayer> public class HttpResponseLayer : HttpLayer, IEquatable<HttpResponseLayer>
{ {
public override bool IsRequest { get { return false; } } public override bool IsRequest { get { return false; } }
......
...@@ -4,6 +4,9 @@ using PcapDotNet.Base; ...@@ -4,6 +4,9 @@ using PcapDotNet.Base;
namespace PcapDotNet.Packets.Http namespace PcapDotNet.Packets.Http
{ {
/// <summary>
/// Represents an HTTP version.
/// </summary>
public class HttpVersion : IEquatable<HttpVersion> public class HttpVersion : IEquatable<HttpVersion>
{ {
public HttpVersion(uint major, uint minor) public HttpVersion(uint major, uint minor)
...@@ -40,6 +43,11 @@ namespace PcapDotNet.Packets.Http ...@@ -40,6 +43,11 @@ namespace PcapDotNet.Packets.Http
return Equals(obj as HttpVersion); return Equals(obj as HttpVersion);
} }
public override int GetHashCode()
{
return Minor.GetHashCode() ^ Major.GetHashCode();
}
internal void Write(byte[] buffer, ref int offset) internal void Write(byte[] buffer, ref int offset)
{ {
buffer.Write(ref offset, _httpSlashBytes); buffer.Write(ref offset, _httpSlashBytes);
......
namespace PcapDotNet.Packets.Transport namespace PcapDotNet.Packets.Transport
{ {
/// <summary>
/// An emotion that can be set in a TCP mood option.
/// </summary>
public enum TcpOptionMoodEmotion public enum TcpOptionMoodEmotion
{ {
/// <summary> /// <summary>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment