Skip to content

Commit f04a2d6

Browse files
authored
Adds new connection status events (#469)
1 parent d3b9d72 commit f04a2d6

1 file changed

Lines changed: 31 additions & 1 deletion

File tree

src/libplctag.NativeImport/EVENT.cs

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,36 @@ public enum EVENT
5454
/// The final status of the creation is passed to the callback as well.
5555
/// This is not as well supported in some cases, so only depend on this for normal tags and not tags like @tags.
5656
/// </summary>
57-
PLCTAG_EVENT_CREATED = 7
57+
PLCTAG_EVENT_CREATED = 7,
58+
59+
/// <summary>
60+
/// The underlying connection is established and ready for operations.
61+
/// </summary>
62+
PLCTAG_EVENT_CONN_STATUS_UP = 100,
63+
64+
/// <summary>
65+
/// The connection is not established.
66+
/// </summary>
67+
PLCTAG_EVENT_CONN_STATUS_DOWN = 101,
68+
69+
/// <summary>
70+
/// The connection is in the process of disconnecting.
71+
/// </summary>
72+
PLCTAG_EVENT_CONN_STATUS_DISCONNECTING = 102,
73+
74+
/// <summary>
75+
/// The connection is in the process of being established.
76+
/// </summary>
77+
PLCTAG_EVENT_CONN_STATUS_CONNECTING = 103,
78+
79+
/// <summary>
80+
/// Waiting to reconnect after an idle disconnect.
81+
/// </summary>
82+
PLCTAG_EVENT_CONN_STATUS_IDLE_WAIT = 104,
83+
84+
/// <summary>
85+
/// Waiting to reconnect after an error.
86+
/// </summary>
87+
PLCTAG_EVENT_CONN_STATUS_ERR_WAIT = 105,
5888
}
5989
}

0 commit comments

Comments
 (0)