diff --git a/include/ntcore_cpp.h b/include/ntcore_cpp.h index e558e827b9..f2911d0038 100644 --- a/include/ntcore_cpp.h +++ b/include/ntcore_cpp.h @@ -199,7 +199,7 @@ std::vector> GetRpcResult(unsigned int result_uid); * Client/Server Functions */ void SetNetworkIdentity(llvm::StringRef name); -void StartServer(const char* persist_filename, const char* listen_address, +void StartServer(StringRef persist_filename, const char* listen_address, unsigned int port); void StopServer(); void StartClient(const char* server_name, unsigned int port); diff --git a/src/ntcore_cpp.cpp b/src/ntcore_cpp.cpp index d0aeee71bb..a634254234 100644 --- a/src/ntcore_cpp.cpp +++ b/src/ntcore_cpp.cpp @@ -102,7 +102,7 @@ void SetNetworkIdentity(StringRef name) { Dispatcher::GetInstance().SetIdentity(name); } -void StartServer(const char *persist_filename, const char *listen_address, +void StartServer(StringRef persist_filename, const char *listen_address, unsigned int port) { Dispatcher& dispatcher = Dispatcher::GetInstance(); dispatcher.StartServer(listen_address, port);