enable building shared library for #128

This commit is contained in:
Max Lv
2014-11-06 10:42:00 +08:00
parent 7adc9037ae
commit 6f64d431b6
25 changed files with 3629 additions and 3116 deletions
+7 -8
View File
@@ -59,18 +59,17 @@ const profile_t EXAMPLE_PROFILE = {
*/
/*
* Create and start a shadowsocks service.
* Create and start a shadowsocks local server.
*
* If background is set to true, the service will run in a child process and
* return the pid if success. Otherwise, calling this function will block the
* current thread forever.
* Calling this function will block the current thread forever if the server
* starts successfully.
*
* On Win32, background mode is invalid. This function will always block the
* caller and never return.
* Make sure start the server in a seperate process to avoid any potential
* memory and socket leak.
*
* If failed, -1 is returned.
* If failed, -1 is returned. Errors will output to the log file.
*/
int start_ss_service(profile_t profile, int background);
int start_ss_local_server(profile_t profile);
// To stop the service on posix system, just kill the daemon process
// kill(pid, SIGKILL);