Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pcap-Net
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Pcap-Net
Commits
f67e42b3
Commit
f67e42b3
authored
Sep 18, 2010
by
Brickner_cp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Warnings, Code Analysis and Documentation. 196 warnings left.
parent
b59c4532
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
243 additions
and
0 deletions
+243
-0
HttpContentLengthField.cs
...Net/src/PcapDotNet.Packets/Http/HttpContentLengthField.cs
+12
-0
HttpLayer.cs
PcapDotNet/src/PcapDotNet.Packets/Http/HttpLayer.cs
+4
-0
HttpRequestDatagram.cs
...DotNet/src/PcapDotNet.Packets/Http/HttpRequestDatagram.cs
+4
-0
HttpRequestKnownMethod.cs
...Net/src/PcapDotNet.Packets/Http/HttpRequestKnownMethod.cs
+200
-0
HttpRequestLayer.cs
PcapDotNet/src/PcapDotNet.Packets/Http/HttpRequestLayer.cs
+4
-0
HttpResponseDatagram.cs
...otNet/src/PcapDotNet.Packets/Http/HttpResponseDatagram.cs
+4
-0
HttpResponseLayer.cs
PcapDotNet/src/PcapDotNet.Packets/Http/HttpResponseLayer.cs
+4
-0
HttpVersion.cs
PcapDotNet/src/PcapDotNet.Packets/Http/HttpVersion.cs
+8
-0
TcpOptionMoodEmotion.cs
.../src/PcapDotNet.Packets/Transport/TcpOptionMoodEmotion.cs
+3
-0
No files found.
PcapDotNet/src/PcapDotNet.Packets/Http/HttpContentLengthField.cs
View file @
f67e42b3
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
{
/// <summary>
/// The field name.
/// </summary>
public
const
string
Name
=
"Content-Length"
;
/// <summary>
/// The field name in lowercase.
/// </summary>
public
const
string
NameLower
=
"content-length"
;
public
HttpContentLengthField
(
uint
contentLength
)
...
...
PcapDotNet/src/PcapDotNet.Packets/Http/HttpLayer.cs
View file @
f67e42b3
...
...
@@ -2,6 +2,10 @@ using System;
namespace
PcapDotNet.Packets.Http
{
/// <summary>
/// RFC 2616.
/// Represents an HTTP layer.
/// </summary>
public
abstract
class
HttpLayer
:
SimpleLayer
,
IEquatable
<
HttpLayer
>
{
public
abstract
bool
IsRequest
{
get
;
}
...
...
PcapDotNet/src/PcapDotNet.Packets/Http/HttpRequestDatagram.cs
View file @
f67e42b3
...
...
@@ -2,6 +2,10 @@
namespace
PcapDotNet.Packets.Http
{
/// <summary>
/// RFC 2616.
/// Represents an HTTP request.
/// </summary>
public
class
HttpRequestDatagram
:
HttpDatagram
{
private
class
ParseInfo
:
ParseInfoBase
...
...
PcapDotNet/src/PcapDotNet.Packets/Http/HttpRequestKnownMethod.cs
View file @
f67e42b3
This diff is collapsed.
Click to expand it.
PcapDotNet/src/PcapDotNet.Packets/Http/HttpRequestLayer.cs
View file @
f67e42b3
...
...
@@ -3,6 +3,10 @@ using System.Text;
namespace
PcapDotNet.Packets.Http
{
/// <summary>
/// RFC 2616.
/// Represents an HTTP request layer.
/// </summary>
public
class
HttpRequestLayer
:
HttpLayer
,
IEquatable
<
HttpRequestLayer
>
{
public
override
bool
IsRequest
{
get
{
return
true
;
}
}
...
...
PcapDotNet/src/PcapDotNet.Packets/Http/HttpResponseDatagram.cs
View file @
f67e42b3
...
...
@@ -3,6 +3,10 @@ using System.Collections.Generic;
namespace
PcapDotNet.Packets.Http
{
/// <summary>
/// RFC 2616.
/// Represents an HTTP response.
/// </summary>
public
class
HttpResponseDatagram
:
HttpDatagram
{
private
class
ParseInfo
:
ParseInfoBase
...
...
PcapDotNet/src/PcapDotNet.Packets/Http/HttpResponseLayer.cs
View file @
f67e42b3
...
...
@@ -3,6 +3,10 @@ using PcapDotNet.Base;
namespace
PcapDotNet.Packets.Http
{
/// <summary>
/// RFC 2616.
/// Represents an HTTP response layer.
/// </summary>
public
class
HttpResponseLayer
:
HttpLayer
,
IEquatable
<
HttpResponseLayer
>
{
public
override
bool
IsRequest
{
get
{
return
false
;
}
}
...
...
PcapDotNet/src/PcapDotNet.Packets/Http/HttpVersion.cs
View file @
f67e42b3
...
...
@@ -4,6 +4,9 @@ using PcapDotNet.Base;
namespace
PcapDotNet.Packets.Http
{
/// <summary>
/// Represents an HTTP version.
/// </summary>
public
class
HttpVersion
:
IEquatable
<
HttpVersion
>
{
public
HttpVersion
(
uint
major
,
uint
minor
)
...
...
@@ -40,6 +43,11 @@ namespace PcapDotNet.Packets.Http
return
Equals
(
obj
as
HttpVersion
);
}
public
override
int
GetHashCode
()
{
return
Minor
.
GetHashCode
()
^
Major
.
GetHashCode
();
}
internal
void
Write
(
byte
[]
buffer
,
ref
int
offset
)
{
buffer
.
Write
(
ref
offset
,
_httpSlashBytes
);
...
...
PcapDotNet/src/PcapDotNet.Packets/Transport/TcpOptionMoodEmotion.cs
View file @
f67e42b3
namespace
PcapDotNet.Packets.Transport
{
/// <summary>
/// An emotion that can be set in a TCP mood option.
/// </summary>
public
enum
TcpOptionMoodEmotion
{
/// <summary>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment