blob: be9e7a214c98f43c92f192660668545c32e7497b (
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
|
using Impostor.Api.Net.Messages;
namespace Impostor.Hazel
{
public struct NewConnectionEventArgs
{
/// <summary>
/// The data received from the client in the handshake.
/// This data is yours. Remember to recycle it.
/// </summary>
public readonly IMessageReader HandshakeData;
/// <summary>
/// The <see cref="Connection"/> to the new client.
/// </summary>
public readonly Connection Connection;
public NewConnectionEventArgs(IMessageReader handshakeData, Connection connection)
{
this.HandshakeData = handshakeData;
this.Connection = connection;
}
}
}
|