]> git.sesse.net Git - ultimatescore/blobdiff - client/bodet.cpp
Support having a second scorebug for a second BT6000-controlled match.
[ultimatescore] / client / bodet.cpp
index 54ec609e1f9ea108b156c8881ed3e85d887a4e31..b9eecc9c6ac83991daaebf5ae05ceabe5d8226e4 100644 (file)
@@ -61,7 +61,12 @@ int main(int argc, char **argv)
        } else {
                inet_pton(AF_INET6, "::1", &saddr6.sin6_addr);
        }
-       saddr6.sin6_port = htons(6000);
+
+       int port = 6000;
+       if (argc >= 3) {
+               port = atoi(argv[2]);
+       }
+       saddr6.sin6_port = htons(port);
 
        // TODO: open serial port