summaryrefslogtreecommitdiff
path: root/standalone.h
diff options
context:
space:
mode:
authorbeatrice <beatrice@dangofactory.net>2026-11-22 19:25:05 +0900
committerbeatrice <beatrice@dangofactory.net>2026-11-22 19:25:05 +0900
commitc7a201b58080c7a0f57b38c59e7865aa42c1d029 (patch)
treecde6146e3aada31e68594fd4f034abe90621ce34 /standalone.h
downloadvsftpd-master.tar.gz
vsftpd-master.zip
Import vsftpd-3.0.5.tar.gzHEADlocal/vsftpdmaster
Diffstat (limited to 'standalone.h')
-rw-r--r--standalone.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/standalone.h b/standalone.h
new file mode 100644
index 0000000..9edcfde
--- /dev/null
+++ b/standalone.h
@@ -0,0 +1,23 @@
+#ifndef VSF_STANDALONE_H
+#define VSF_STANDALONE_H
+
+struct vsf_client_launch
+{
+ unsigned int num_children;
+ unsigned int num_this_ip;
+};
+
+/* vsf_standalone_main()
+ * PURPOSE
+ * This function starts listening on the network for incoming FTP connections.
+ * When it gets one, it returns to the caller in a new process, with file
+ * descriptor 0, 1 and 2 set to the network socket of the new client.
+ *
+ * RETURNS
+ * Returns a structure representing the current number of clients, and
+ * instances for this IP addresss.
+ */
+struct vsf_client_launch vsf_standalone_main(void);
+
+#endif /* VSF_STANDALONE_H */
+