Implemented the fixed ICCC driver specification

This commit is contained in:
Thorsten Sommer committed 2015-07-13 10:44:03 +02:00
1 parent 72e2870684
commit cc68365977
22 files changed
+49 -19

No files matched your search

+2 -1
View File
@@ -8,12 +8,13 @@ import (
)
// Function to register a server to the ICCC.
func registerHost2Database(hostname, ipAddressPort string) {
func registerHost2Database(hostname, ipAddressPort string, kind byte) {
// Create the host entry:
host := Scheme.Host{}
host.Hostname = hostname
host.IPAddressPort = ipAddressPort
host.Kind = kind
// The query to find already existing entries:
selection := bson.D{{`Hostname`, host.Hostname}, {`IPAddressPort`, host.IPAddressPort}}