blob: 35609fcc04b95a751ac85e49cb4cff1157df1f88 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Hazel
{
public struct DataReceivedEventArgs
{
public readonly Connection Sender;
/// <summary>
/// The bytes received from the client.
/// </summary>
public readonly MessageReader Message;
/// <summary>
/// The <see cref="SendOption"/> the data was sent with.
/// </summary>
public readonly SendOption SendOption;
public DataReceivedEventArgs(Connection sender, MessageReader msg, SendOption sendOption)
{
this.Sender = sender;
this.Message = msg;
this.SendOption = sendOption;
}
}
}
|