⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 commands.h

📁 用c写的ftp客户端源代码,可以在UNIX,Windows下编译通过,学习的好代码!
💻 H
字号:
/* dftp: FTP client example * Copyright (c) 1996 by Donald C. Asonye * Email: donald@uh.edu * * commands.h. * * This and other files are hereby released	to the public for  * educational purposes.  You may redistribute this and other files * or routines as long as you are not compensated for it, and as  * long as this notice is included with it.  You may not use the  * released source codes in anyway commercial without permission. * * It'd be nice if you share your modifications with me and everyone * else.  I encourage you to make the code better as I am very busy. * * Share your knowledge :) */#ifndef __COMMANDS_H__#define __COMMANDS_H__#include <sys/types.h>#if (!defined(WIN32) || !defined(_WIN32) )#include <sys/time.h>#include <unistd.h>#include <sys/errno.h>#else#include <time.h>#include <winsock.h>#include <direct.h>#include <wincon.h>#endif  /* !WIN32 */#include <sys/stat.h>#include <ctype.h>#include <stdio.h>#include <stdlib.h>#include <fcntl.h>#include "enums.h"extern int hControlSocket,	   hListenSocket,	   hDataSocket;int ReadCommand = 0;int bMode=ASCII;#if ( !defined(_WIN32) || !defined(WIN32) )#if (defined(ultrix) || defined(__ULTRIX) || defined (__ultrix)) char *strdup( const char *str){  char *szTemp;  szTemp = (char *)malloc(strlen(str));  if( !szTemp )     return (char *)NULL;    strcpy(szTemp,str);  return szTemp;}#endif#endif  /* !win32 */void DoOpen(char *),     DoList(char *),     DoCD(char *),     DoShellCommand(char *),     DoLogin(char *),     DoClose(void),     DoLCD( char *),     DoPut( char *),     DoGet( char *),     DoLLS(char * ),     DoBinary(),     DoRhelp( char *),     DoAscii();int  GetReply(),     CheckFds(char *);extern void help( char * );#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -