collect.h源码


#include <stdio.h>
#include <fcntl.h>
#include <ctype.h>
#include <string.h>
#include <signal.h>
#include <time.h>
#include <dirent.h>
#include <stdlib.h>
#include <ctype.h>
#include <unistd.h>
#include <netdb.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>


#define DEBUG
#ifndef DEBUG
#define DEB(xxx) {}
#define MAXAGENTS 5
#else
#define DEB(xxx) {printf("--- %s\n",xxx);fflush(stdout);}
#define MAXAGENTS 1
#endif

#define EMAILINFO "xxxss@msn.com"

#define PREPOSITIVE '1'
#define POSITIVE '2'
#define PROCEED '3'
#define PRENEGATIVE '4'
#define NEGATIVE '5'
#define SUCCESS "226 "
#define PWD "257 "


#define SIZEOFINETADDR 4
#define TIMEOUT 40

#define MINLENGTHOFSEARCH 3

#define S_PREOK 1
#define S_OK 0 // 这个宏在collect.c中多次用到,表示连接状态吗?
#define S_ERROR -1
#define S_CLOSED -2
#define S_ERROR_INFIMA -3 /* A fix to the Major BBS's RFC 959 LIST violation */

#define PARKER_NICE 20

#define CGIALARM 600

#define FTPPORT 21
#define MODE 0644
#define TIMEOUT 1200

#define CR 13
#define LF 10


#define LZOCOMP "lzo_comp"
#define MV "mv"
#define GUNZIP "gunzip"
#define ANONYMOUS "anonymous"
#define ANONYPASS "my@my.com"
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值