1 Star 0 Fork 6

erci2047 / iceftpd

forked from 冰雪不语 / iceftpd 
Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
Clone or Download
session.h 734 Bytes
Copy Edit Web IDE Raw Blame History
冰雪不语 authored 2015-08-31 13:07 . ~
#ifndef _SESSION_H_
#define _SESSION_H_
#include "common.h"
typedef struct session
{
// 控制连接
uid_t uid;
int ctrl_fd;
char cmdline[MAX_COMMAND_LINE];
char cmd[MAX_COMMAND];
char arg[MAX_ARG];
// 数据连接
struct sockaddr_in *port_addr;
int pasv_listen_fd;
int data_fd;
int data_process;
// 限速
unsigned int bw_upload_rate_max;
unsigned int bw_download_rate_max;
long bw_transfer_start_sec;
long bw_transfer_start_usec;
// 父子进程通道
int parent_fd;
int child_fd;
// FTP协议状态
int is_ascii;
long long restart_pos;
char *rnfr_name;
int abor_received;
// 连接数限制
unsigned int num_clients;
unsigned int num_this_ip;
} session_t;
void begin_session(session_t *sess);
#endif /* _SESSION_H_ */

Comment ( 0 )

Sign in to post a comment

C
1
https://git.oschina.net/erci2047/iceftpd.git
git@git.oschina.net:erci2047/iceftpd.git
erci2047
iceftpd
iceftpd
master

Search