Improved ICCC
It is now necessary, that every command sends an answer.
This commit is contained in:
1 parent
dcc1af2a23
commit
2bd612da48
13 files changed
+188
-46
No files matched your search
@@ -0,0 +1,7 @@
|
||||
package SystemMessages
|
||||
|
||||
// The type for any answer, which can be extended by using CommandData.
|
||||
type DefaultAnswer struct {
|
||||
CommandSuccessful bool
|
||||
CommandAnswer int64
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package SystemMessages
|
||||
|
||||
var (
|
||||
AnswerACK DefaultAnswer = DefaultAnswer{true, 0} // The command was successful
|
||||
AnswerNACK DefaultAnswer = DefaultAnswer{false, 0} // The command was not successful
|
||||
AnswerUNKNOWN DefaultAnswer = DefaultAnswer{false, -1} // The answer is unknown e.g. an error while reading the answer (HTTP errors, etc.)
|
||||
)
|
||||
Reference in new issue
Block a user