Added more ICCC commands
+ Added ICCC command for register a host + Added ICCC command for register a command i.e. listener + Added ICCC command for getting a number from NumGen
This commit is contained in:
1 parent
326eb9ba7a
commit
6e111b7517
15 files changed
+244
-65
No files matched your search
@@ -0,0 +1,10 @@
|
||||
package SystemMessages
|
||||
|
||||
// The message to request a new number from NumGen package.
|
||||
type ICCCNumGenNext struct {
|
||||
}
|
||||
|
||||
// The response to the Numgen request.
|
||||
type ICCCAnswerNumGen struct {
|
||||
Number int64
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package SystemMessages
|
||||
|
||||
// The message to register a host to ICCC.
|
||||
type ICCCRegisterHost struct {
|
||||
Hostname string // The hostname for the end-point
|
||||
IPAddressPort string // The IP address and port for the end-point
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package SystemMessages
|
||||
|
||||
// The message to register a command/listener to ICCC.
|
||||
type ICCCRegisterListener struct {
|
||||
Channel string // The channel for the provided command
|
||||
Command string // The provided command
|
||||
IsActive bool // Is the command active?
|
||||
IPAddressPort string // The IP address and port for the end-point
|
||||
}
|
||||
@@ -2,6 +2,6 @@ package SystemMessages
|
||||
|
||||
// Message type for the startup message:
|
||||
type ICCCStartUpMessage struct {
|
||||
PublicIPAddressAndPort string
|
||||
AdminIPAddressAndPort string
|
||||
PublicIPAddressAndPort string // The public web server's IP address and port
|
||||
AdminIPAddressAndPort string // The private admin server's IP address and port
|
||||
}
|
||||
Reference in new issue
Block a user