using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Hazel { /// /// Specifies how a message should be sent between connections. /// [Flags] public enum SendOption : byte { /// /// Requests unreliable delivery with no framentation. /// /// /// Sending data using unreliable delivery means that data is not guaranteed to arrive at it's destination nor is /// it guarenteed to arrive only once. However, unreliable delivery can be faster than other methods and it /// typically requires a smaller number of protocol bytes than other methods. There is also typically less /// processing involved and less memory needed as packets are not stored once sent. /// None = 0, /// /// Requests data be sent reliably but with no fragmentation. /// /// /// Sending data reliably means that data is guarenteed to arrive and to arrive only once. Reliable delivery /// typically requires more processing, more memory (as packets need to be stored in case they need resending), /// a larger number of protocol bytes and can be slower than unreliable delivery. /// Reliable = 1, } }