using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Hazel { public struct DataReceivedEventArgs { public readonly Connection Sender; /// /// The bytes received from the client. /// public readonly MessageReader Message; /// /// The the data was sent with. /// public readonly SendOption SendOption; public DataReceivedEventArgs(Connection sender, MessageReader msg, SendOption sendOption) { this.Sender = sender; this.Message = msg; this.SendOption = sendOption; } } }