Ocean/ICCC/RegisterLocalCommand2Database.go
Thorsten Sommer 6e111b7517 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
2015-06-21 21:28:39 +02:00

13 lines
473 B
Go

package ICCC
// The internal function to register a local command to ICCC.
func registerLocalCommand2Database(channel, command string) {
/*
Cannot use here the ICCC command to register this command.
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 commans directly.
*/
registerCommand2Database(channel, command, correctAddressWithPort, true)
}