Improved ICCC as preparation for external components

This commit is contained in:
Thorsten Sommer committed 2015-07-10 14:36:47 +02:00
1 parent a566ccbd6a
commit 86121b733d
31 files changed
+491 -79

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
package SystemMessages
// The message to delete a host from ICCC.
type ICCCDeleteHost struct {
Hostname string
IPAddressPort string
}
@@ -0,0 +1,8 @@
package SystemMessages
// The message to delete an listener from ICCC.
type ICCCDeleteListener struct {
Channel string
Command string
IPAddressPort string
}
+11
View File
@@ -0,0 +1,11 @@
package SystemMessages
// A message to request the known ICCC hosts.
type ICCCGetHosts struct {
}
// The answer to the hosts request.
type ICCCGetHostsAnswer struct {
Hostnames []string
IPAddressesPorts []string
}
+12
View File
@@ -0,0 +1,12 @@
package SystemMessages
// A message to request the known ICCC listeners.
type ICCCGetListeners struct {
}
// The answer to the listeners request.
type ICCCGetListenersAnswer struct {
Channels []string
Commands []string
IPAddressesPorts []string
}
@@ -0,0 +1,9 @@
package SystemMessages
// The message to update an listener from ICCC.
type ICCCListenerUpdate struct {
Channel string
Command string
IPAddressPort string
IsActiveNew bool
}
+5
View File
@@ -0,0 +1,5 @@
package SystemMessages
// The ping message to check status of other hosts.
type ICCCPing struct {
}
+1 -1
View File
@@ -1,6 +1,6 @@
package SystemMessages
// The message to register a command/listener to ICCC.
// The message to register an listener to ICCC.
type ICCCRegisterListener struct {
Channel string // The channel for the provided command
Command string // The provided command