2019-12-03 18:44:25 +01:00
|
|
|
|
namespace Unosquare.Swan {
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Enumerates the possible causes of the DataReceived event occurring.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public enum ConnectionDataReceivedTrigger {
|
2019-02-17 14:08:57 +01:00
|
|
|
|
/// <summary>
|
2019-12-03 18:44:25 +01:00
|
|
|
|
/// The trigger was a forceful flush of the buffer
|
2019-02-17 14:08:57 +01:00
|
|
|
|
/// </summary>
|
2019-12-03 18:44:25 +01:00
|
|
|
|
Flush,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The new line sequence bytes were received
|
|
|
|
|
/// </summary>
|
|
|
|
|
NewLineSequenceEncountered,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The buffer was full
|
|
|
|
|
/// </summary>
|
|
|
|
|
BufferFull,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The block size reached
|
|
|
|
|
/// </summary>
|
|
|
|
|
BlockSizeReached,
|
|
|
|
|
}
|
2019-02-17 14:08:57 +01:00
|
|
|
|
}
|