mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 22:26:09 +08:00
replace external httpserver by embedded one (based on same code) - This may still be very bad; clean solution and runprebuild, or clone to clan folder
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
using System;
|
||||
|
||||
namespace OSHttpServer.Parser
|
||||
{
|
||||
/// <summary>
|
||||
/// Arguments used when more body bytes have come.
|
||||
/// </summary>
|
||||
public class BodyEventArgs : EventArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="BodyEventArgs"/> class.
|
||||
/// </summary>
|
||||
/// <param name="buffer">buffer that contains the received bytes.</param>
|
||||
/// <param name="offset">offset in buffer where to start processing.</param>
|
||||
/// <param name="count">number of bytes from <paramref name="offset"/> that should be parsed.</param>
|
||||
public BodyEventArgs(byte[] buffer, int offset, int count)
|
||||
{
|
||||
Buffer = buffer;
|
||||
Offset = offset;
|
||||
Count = count;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="BodyEventArgs"/> class.
|
||||
/// </summary>
|
||||
public BodyEventArgs()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets buffer that contains the received bytes.
|
||||
/// </summary>
|
||||
public byte[] Buffer { get; set; }
|
||||
/*
|
||||
/// <summary>
|
||||
/// Gets or sets number of bytes used by the request.
|
||||
/// </summary>
|
||||
public int BytesUsed { get; set; }
|
||||
*/
|
||||
/// <summary>
|
||||
/// Gets or sets number of bytes from <see cref="Offset"/> that should be parsed.
|
||||
/// </summary>
|
||||
public int Count { get; set; }
|
||||
/*
|
||||
/// <summary>
|
||||
/// Gets or sets whether the body is complete.
|
||||
/// </summary>
|
||||
public bool IsBodyComplete { get; set; }
|
||||
*/
|
||||
/// <summary>
|
||||
/// Gets or sets offset in buffer where to start processing.
|
||||
/// </summary>
|
||||
public int Offset { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user