mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
C++ NetworkTable: Provide SetPort() method.
This was previously only available in Java.
This commit is contained in:
@@ -20,6 +20,7 @@ class NetworkTable : public ITable {
|
||||
static std::string s_persistent_filename;
|
||||
static bool s_client;
|
||||
static bool s_running;
|
||||
static unsigned int s_port;
|
||||
|
||||
public:
|
||||
NetworkTable(llvm::StringRef path, const private_init&);
|
||||
@@ -63,6 +64,12 @@ class NetworkTable : public ITable {
|
||||
*/
|
||||
static void SetIPAddress(llvm::StringRef address);
|
||||
|
||||
/**
|
||||
* @param port the port number that network tables will connect to in client
|
||||
* mode or listen to in server mode
|
||||
*/
|
||||
static void SetPort(unsigned int port);
|
||||
|
||||
/**
|
||||
* Sets the persistent filename.
|
||||
* @param filename the filename that the network tables server uses for
|
||||
|
||||
Reference in New Issue
Block a user