-
Notifications
You must be signed in to change notification settings - Fork 15
/
XModemStatesEnum.cs
41 lines (41 loc) · 1.65 KB
/
XModemStatesEnum.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
namespace XModemProtocol {
/// <summary>
/// The enumeration that represents the internal state of the XModemCommunicator instance.
/// </summary>
public enum XModemStates {
/// <summary>
/// The default state.
/// </summary>
Idle,
/// <summary>
/// Notes that XModemCommunicator has begun initializing.
/// </summary>
Initializing,
/// <summary>
/// Notes that XModemCommunicator's current operation has been cancelled, and cleanup,
/// if any, is to be performed.
/// </summary>
Cancelled,
/// <summary>
/// The instance is in the Sender role. Awaiting initialization from Receiver.
/// </summary>
SenderAwaitingInitializationFromReceiver,
/// <summary>
/// The instance is in the Sender role. Actively sending packets.
/// </summary>
SenderPacketsBeingSent,
/// <summary>
/// The instance is in the Receiver role. Sending the initialization byte.
/// </summary>
ReceiverSendingInitializationByte,
/// <summary>
/// The instance is in the Receiver role. Actively receiving packets.
/// </summary>
ReceiverReceivingPackets,
/// <summary>
/// Notes that XModemCommunicator has finished its operation. If in the Sender role, it's either awaiting the final ACK or awaiting completion of the Completed event.
/// If in the Receiver role, it has received the final ACK and is awaiting completion of the Completed event.
/// </summary>
PendingCompletion,
}
}