📄 global.h
字号:
#include<stdio.h>#include<stdlib.h>#include<unistd.h>//////////////////////////////some global define//////////////////////////////int controlfd;int datafd;int status;char *remoteaddr;char *username;char *remotecwd;char *remoteostype;char *transmittype;struct linebuf{ char *buf; int size;};/////////////////////////some function////////////////////////////////void readline( int fd , struct linebuf *lbuf );void getline( char *buf);struct linebuf* inilinebuf( int size );void freelinebuf(struct linebuf* lbuf );void *xrealloc(void *ptr,int size);///////////////////////define some status for ftpclient//////////////#define DISCONNECTED 0#define CONNECTED 1#define LOGINERROR 2#define LOGINED 3//////////////////////////////////////////////////////////////////////
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -