This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
magicka/utils/magiftpd/magiftpd.h
2017-04-05 09:04:06 +10:00

32 lines
579 B
C

#ifndef __MAGIFTPD_H
#define __MAGIFTPD_H
struct ftpclient {
int fd;
int data_socket;
char current_path[PATH_MAX];
char data_ip[INET6_ADDRSTRLEN];
int data_port;
int type;
char ip[INET6_ADDRSTRLEN];
char hostip[INET6_ADDRSTRLEN];
char name[16];
char password[32];
int data_srv_socket;
int status;
int seclevel;
};
struct ftpserver {
int port;
char *fileroot;
char *userdb;
char *upload_folder;
int upload_seclevel;
int min_passive_port;
int max_passive_port;
int last_passive_port;
};
#endif