standalone.h 606 B

1234567891011121314151617181920212223
  1. #ifndef VSF_STANDALONE_H
  2. #define VSF_STANDALONE_H
  3. struct vsf_client_launch
  4. {
  5. unsigned int num_children;
  6. unsigned int num_this_ip;
  7. };
  8. /* vsf_standalone_main()
  9. * PURPOSE
  10. * This function starts listening on the network for incoming FTP connections.
  11. * When it gets one, it returns to the caller in a new process, with file
  12. * descriptor 0, 1 and 2 set to the network socket of the new client.
  13. *
  14. * RETURNS
  15. * Returns a structure representing the current number of clients, and
  16. * instances for this IP addresss.
  17. */
  18. struct vsf_client_launch vsf_standalone_main(void);
  19. #endif /* VSF_STANDALONE_H */