|
|
1.1 ! root 1: /* FTPSRVR.H */ ! 2: ! 3: /* Synchronet FTP server */ ! 4: ! 5: /* $Id: ftpsrvr.h,v 1.7 2000/12/02 22:47:41 rswindell Exp $ */ ! 6: ! 7: /**************************************************************************** ! 8: * @format.tab-size 4 (Plain Text/Source Code File Header) * ! 9: * @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) * ! 10: * * ! 11: * Copyright 2000 Rob Swindell - http://www.synchro.net/copyright.html * ! 12: * * ! 13: * This program is free software; you can redistribute it and/or * ! 14: * modify it under the terms of the GNU General Public License * ! 15: * as published by the Free Software Foundation; either version 2 * ! 16: * of the License, or (at your option) any later version. * ! 17: * See the GNU General Public License for more details: gpl.txt or * ! 18: * http://www.fsf.org/copyleft/gpl.html * ! 19: * * ! 20: * Anonymous FTP access to the most recent released source is available at * ! 21: * ftp://vert.synchro.net, ftp://cvs.synchro.net and ftp://ftp.synchro.net * ! 22: * * ! 23: * Anonymous CVS access to the development source and modification history * ! 24: * is available at cvs.synchro.net:/cvsroot/sbbs, example: * ! 25: * cvs -d :pserver:[email protected]:/cvsroot/sbbs login * ! 26: * (just hit return, no password is necessary) * ! 27: * cvs -d :pserver:[email protected]:/cvsroot/sbbs checkout src * ! 28: * * ! 29: * For Synchronet coding style and modification guidelines, see * ! 30: * http://www.synchro.net/source.html * ! 31: * * ! 32: * You are encouraged to submit any modifications (preferably in Unix diff * ! 33: * format) via e-mail to [email protected] * ! 34: * * ! 35: * Note: If this box doesn't appear square, then you need to fix your tabs. * ! 36: ****************************************************************************/ ! 37: ! 38: #include "client.h" /* client_t */ ! 39: ! 40: typedef struct { ! 41: ! 42: DWORD size; /* sizeof(ftp_startup_t) */ ! 43: WORD port; ! 44: WORD max_clients; ! 45: WORD max_inactivity; ! 46: WORD reserved_word5; ! 47: WORD reserved_word4; ! 48: WORD reserved_word3; ! 49: WORD reserved_word2; ! 50: WORD reserved_word1; ! 51: DWORD interface_addr; ! 52: DWORD options; /* See FTP_OPT definitions */ ! 53: DWORD reserved_dword8; ! 54: DWORD reserved_dword7; ! 55: DWORD reserved_dword6; ! 56: DWORD reserved_dword5; ! 57: DWORD reserved_dword4; ! 58: DWORD reserved_dword3; ! 59: DWORD reserved_dword2; ! 60: DWORD reserved_dword1; ! 61: int (*lputs)(char*); ! 62: void (*status)(char*); ! 63: void (*started)(void); ! 64: void (*terminated)(int code); ! 65: void (*clients)(int active); ! 66: void (*thread_up)(BOOL up); ! 67: void (*socket_open)(BOOL open); ! 68: void (*client_on)(BOOL on, int sock, client_t*); ! 69: void (*reserved_fptr4)(void); ! 70: void (*reserved_fptr3)(void); ! 71: void (*reserved_fptr2)(void); ! 72: void (*reserved_fptr1)(void); ! 73: char ctrl_dir[128]; ! 74: char index_file_name[128]; ! 75: char reserved_path8[128]; ! 76: char reserved_path7[128]; ! 77: char reserved_path6[128]; ! 78: char reserved_path5[128]; ! 79: char reserved_path4[128]; ! 80: char reserved_path3[128]; ! 81: char answer_sound[128]; ! 82: char hangup_sound[128]; ! 83: char reserved_path2[128]; ! 84: char reserved_path1[128]; ! 85: ! 86: } ftp_startup_t; ! 87: ! 88: #define FTP_OPT_DEBUG_RX (1<<0) ! 89: #define FTP_OPT_DEBUG_DATA (1<<1) ! 90: #define FTP_OPT_INDEX_FILE (1<<2) /* Auto-generate Index files */ ! 91: #define FTP_OPT_DEBUG_TX (1<<3) ! 92: #define FTP_OPT_ALLOW_QWK (1<<4) ! 93: #define FTP_OPT_NO_LOCAL_FSYS (1<<5) ! 94: #define FTP_OPT_DIR_FILES (1<<6) /* Allow access to files in dir but not in database */ ! 95: #define FTP_OPT_KEEP_TEMP_FILES (1<<7) /* Don't delete temp files (for debugging) */ ! 96: #define FTP_OPT_NO_HOST_LOOKUP (1<<11) ! 97: #define FTP_OPT_LOCAL_TIMEZONE (1<<30) /* Don't force UCT/GMT */ ! 98: #define FTP_OPT_MUTE (1<<31) ! 99: ! 100: #ifdef DLLEXPORT ! 101: #undef DLLEXPORT ! 102: #endif ! 103: #ifdef DLLCALL ! 104: #undef DLLCALL ! 105: #endif ! 106: ! 107: #ifdef _WIN32 ! 108: #ifdef FTPSRVR_EXPORTS ! 109: #define DLLEXPORT __declspec(dllexport) ! 110: #else ! 111: #define DLLEXPORT __declspec(dllimport) ! 112: #endif ! 113: #ifdef __BORLANDC__ ! 114: #define DLLCALL __stdcall ! 115: #else ! 116: #define DLLCALL ! 117: #endif ! 118: #else ! 119: #define DLLEXPORT ! 120: #define DLLCALL ! 121: #endif ! 122: ! 123: #ifdef __cplusplus ! 124: extern "C" { ! 125: #endif ! 126: /* arg is pointer to static ftp_startup_t */ ! 127: DLLEXPORT void DLLCALL ftp_server(void* arg); ! 128: DLLEXPORT void DLLCALL ftp_terminate(void); ! 129: DLLEXPORT char* DLLCALL ftp_ver(void); ! 130: #ifdef __cplusplus ! 131: } ! 132: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.