namespace Hazel { public struct NewConnectionEventArgs { /// /// The data received from the client in the handshake. /// You must not recycle this. If you need the message outside of a callback, you should copy it. /// public readonly MessageReader HandshakeData; /// /// The to the new client. /// public readonly Connection Connection; public NewConnectionEventArgs(MessageReader handshakeData, Connection connection) { this.HandshakeData = handshakeData; this.Connection = connection; } } }