Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
ftpserv.h
Package: export.zip [view]
Upload User: hepax88
Upload Date: 2007-01-03
Package Size: 1101k
Code Size: 1k
Category:
TCP/IP Stack
Development Platform:
Visual C++
- #ifndef _FTPSERV_H
- #define _FTPSERV_H
- #include <stdio.h>
- #ifndef _SOCKADDR_H
- #include "sockaddr.h"
- #endif
- #ifndef _FTP_H
- #include "ftp.h"
- #endif
- extern char *Userfile; /* List of user names and permissions */
- struct ftpserv {
- FILE *control; /* Control stream */
- FILE *data; /* Data stream */
- enum ftp_type type; /* Transfer type */
- int logbsize; /* Logical byte size for logical type */
- FILE *fp; /* File descriptor being transferred */
- struct sockaddr_in port;/* Remote port for data connection */
- char *username; /* Arg to USER command */
- char *path; /* Allowable path prefix */
- int perms; /* Permission flag bits */
- /* (See FILES.H for definitions) */
- char *cd; /* Current directory name */
- };
- /* FTP commands */
- enum ftp_cmd {
- USER_CMD,
- ACCT_CMD,
- PASS_CMD,
- TYPE_CMD,
- LIST_CMD,
- CWD_CMD,
- DELE_CMD,
- NAME_CMD,
- QUIT_CMD,
- RETR_CMD,
- STOR_CMD,
- PORT_CMD,
- NLST_CMD,
- PWD_CMD,
- XPWD_CMD,
- MKD_CMD,
- XMKD_CMD,
- XRMD_CMD,
- RMD_CMD,
- STRU_CMD,
- MODE_CMD,
- SYST_CMD,
- XMD5_CMD,
- XCWD_CMD,
- };
- int permcheck(char *path,int perms,int op,char *file);
- #endif /* _FTPSERV_H */