Commit f608d51
committed
Large changes to Socket/UPS handling
- New Nut_Exception constructor to allow specifying NUTResponse instead of _Exception_Value
- Shifted some responsibility of error handling out of Socket class and into UPS class. These are some major changes and need testing.
- Merged Create_Socket code into Connect code
- Renamed and then commented-out IsKnownUPS function. Feels like this should be a part of the UPS class, but regardless, we'll know if there's an invalid UPS the moment a command is run for one.
- Simplified & renamed Query_Desc function
- Added a few events to the UPS class for informing any listeners of issues
- UPS no longer handles socket errors, and instead passively notifies listeners about one
- GetUPSVar supports DATA-STALE errors and will retry 3 times to get the data, and then take the default value and raise an event about the error.
- If error is encountered when opening the ListVarGUI, display a message box and close the form.
- Removed the Unknown_UPS event and modified the GUI to handle future errors.1 parent 23ea925 commit f608d51
File tree
5 files changed
+360
-286
lines changed- WinNUT_V2
- WinNUT-Client_Common
- WinNUT_GUI
5 files changed
+360
-286
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
48 | 59 | | |
49 | 60 | | |
50 | 61 | | |
| |||
0 commit comments