File: standalone.h

package info (click to toggle)
vsftpd 3.0.3-12
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,548 kB
  • sloc: ansic: 16,632; sh: 267; makefile: 51; python: 18
file content (23 lines) | stat: -rw-r--r-- 606 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 */