aboutsummaryrefslogtreecommitdiff
path: root/service_provider.c
diff options
context:
space:
mode:
authorFranklin Wei <me@fwei.tk>2018-06-28 18:59:52 -0400
committerFranklin Wei <me@fwei.tk>2018-06-28 18:59:52 -0400
commitcfa1e7cbf63c242abf6de27d631674a6623dffe2 (patch)
tree698034eb22ba9b7d64952892f4b738c733be2f33 /service_provider.c
parente339c26e420d36f1482015746a95d3abfc134cb7 (diff)
downloadcsaa-cfa1e7cbf63c242abf6de27d631674a6623dffe2.zip
csaa-cfa1e7cbf63c242abf6de27d631674a6623dffe2.tar.gz
csaa-cfa1e7cbf63c242abf6de27d631674a6623dffe2.tar.bz2
csaa-cfa1e7cbf63c242abf6de27d631674a6623dffe2.tar.xz
Add configurable logleaves
Diffstat (limited to 'service_provider.c')
-rw-r--r--service_provider.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/service_provider.c b/service_provider.c
index a731759..c917387 100644
--- a/service_provider.c
+++ b/service_provider.c
@@ -1133,7 +1133,7 @@ static void sp_handle_client(struct service_provider *sp, int cl)
}
}
-int sp_main(int sockfd)
+int sp_main(int sockfd, int logleaves)
{
#define BACKLOG 10
@@ -1145,7 +1145,8 @@ int sp_main(int sockfd)
signal(SIGPIPE, SIG_IGN);
- int logleaves = 10;
+ printf("Initializing IOMT with logleaves = %d...\n", logleaves);
+
struct service_provider *sp = sp_new("a", 1, logleaves, "files");
while(1)