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,16 @@
|
||||
package ICCC
|
||||
|
||||
import (
|
||||
"github.com/SommerEngineering/Ocean/Tools"
|
||||
)
|
||||
|
||||
// Function to register this server to the ICCC.
|
||||
func registerThisHost2Database() {
|
||||
/*
|
||||
Cannot use here the ICCC command to register this host.
|
||||
Because, this host is maybe the first one. In that case,
|
||||
there would be no server which can execute the ICCC command.
|
||||
Therefore, every Ocean server registers the own host directly.
|
||||
*/
|
||||
registerHost2Database(Tools.ThisHostname(), correctAddressWithPort)
|
||||
}
|
||||
Reference in new issue
Block a user