diff options
| author | Joseph Henry <[email protected]> | 2016-08-17 10:22:31 -0700 |
|---|---|---|
| committer | Joseph Henry <[email protected]> | 2016-08-17 10:22:31 -0700 |
| commit | 15985ebcd6e930ca90391a14444573d555010f60 (patch) | |
| tree | fc88383d4b8ecfc8795e5fa407007bdf47c65aac /src/SDK_Service.cpp | |
| parent | ca55570e248a82098382806dece8d249f22b655c (diff) | |
Exposed stop_service() to java-land
Diffstat (limited to 'src/SDK_Service.cpp')
| -rw-r--r-- | src/SDK_Service.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SDK_Service.cpp b/src/SDK_Service.cpp index dc50034..e797e14 100644 --- a/src/SDK_Service.cpp +++ b/src/SDK_Service.cpp @@ -109,7 +109,7 @@ void zts_join_network(const char * nwid) { } void zts_leave_network(const char * nwid) { zt1Service->leave(nwid); } bool zts_is_running() { return zt1Service->isRunning(); } -void zts_terminate() { zt1Service->terminate(); } +void zts_stop_service() { zt1Service->terminate(); } // FIXME: Re-implemented to make it play nicer with the C-linkage required for Xcode integrations // Now only returns first assigned address per network. Shouldn't normally be a problem @@ -187,9 +187,9 @@ int zts_get_proxy_server_address(const char * nwid, struct sockaddr_storage * ad return false; } // Shuts down ZeroTier service and SOCKS5 Proxy server - JNIEXPORT void JNICALL Java_ZeroTier_SDK_zt_1terminate_1service(JNIEnv *env, jobject thisObj) { + JNIEXPORT void JNICALL Java_ZeroTier_SDK_zt_1stop_1service(JNIEnv *env, jobject thisObj) { if(zt1Service) - zts_terminate(); + zts_stop_service(); // TODO: Also terminate SOCKS5 Proxy // zts_stop_proxy_server(); } |
