PIThread now setup itself in thread func

This commit is contained in:
2024-12-29 10:50:38 +03:00
parent 0973379f53
commit 49713ddc57
3 changed files with 43 additions and 33 deletions

View File

@@ -45,7 +45,7 @@ void usage() {
}
PIString confDir() {
PIString pisdConfDir() {
return
#ifdef WINDOWS
PIDir::home().path() + "/AppData/Local"
@@ -74,7 +74,7 @@ int main(int argc, char * argv[]) {
}
PINetworkAddress addr = PINetworkAddress("0.0.0.0", 10101);
PIString conf_path = confDir();
PIString conf_path = pisdConfDir();
PIDir::make(conf_path);
conf_path += "/picloud.conf";
uint max_connections = 1000;