Improved ICCC for external components
This commit is contained in:
1 parent
6abe562642
commit
184f320a2e
12 files changed
+113
-63
No files matched your search
@@ -1,7 +1,7 @@
|
||||
package SystemMessages
|
||||
|
||||
// The type for any answer, which can be extended by using CommandData.
|
||||
type DefaultAnswer struct {
|
||||
type ICCCDefaultAnswer struct {
|
||||
CommandSuccessful bool
|
||||
CommandAnswer int64
|
||||
}
|
||||
@@ -5,6 +5,6 @@ type ICCCNumGenNext struct {
|
||||
}
|
||||
|
||||
// The response to the NumGen request.
|
||||
type ICCCAnswerNumGen struct {
|
||||
type ICCCNumGenNextAnswer struct {
|
||||
Number int64
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
package SystemMessages
|
||||
|
||||
// Message type for the startup message:
|
||||
type ICCCStartUpMessage struct {
|
||||
PublicIPAddressAndPort string // The public web server's IP address and port
|
||||
AdminIPAddressAndPort string // The private admin server's IP address and port
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package SystemMessages
|
||||
|
||||
// Message type for the startup message of Ocean's servers:
|
||||
type ICCCOceanStartUpMessage struct {
|
||||
PublicIPAddressPort string // The public web server's IP address and port
|
||||
AdminIPAddressPort string // The private admin server's IP address and port
|
||||
}
|
||||
|
||||
// Message type for a startup message for external components:
|
||||
type ICCCComponentStartUpMessage struct {
|
||||
IPAddressPort string // The component's ICCC IP address and port
|
||||
}
|
||||
@@ -1,7 +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.)
|
||||
AnswerACK ICCCDefaultAnswer = ICCCDefaultAnswer{true, 0} // The command was successful
|
||||
AnswerNACK ICCCDefaultAnswer = ICCCDefaultAnswer{false, 0} // The command was not successful
|
||||
AnswerUNKNOWN ICCCDefaultAnswer = ICCCDefaultAnswer{false, -1} // The answer is unknown e.g. an error while reading the answer (HTTP errors, etc.)
|
||||
)
|
||||
Reference in new issue
Block a user