Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 6f79f52c authored by rswindell's avatar rswindell

Added FTP client member functions to sbbs_t.

Added prototypes for open_socket, close_socket, and resolve_ip.
parent 2d034d14
...@@ -309,6 +309,10 @@ public: ...@@ -309,6 +309,10 @@ public:
long* getintvar(csi_t *bin, long name); long* getintvar(csi_t *bin, long name);
char* copystrvar(csi_t *csi, char *p, char *str); char* copystrvar(csi_t *csi, char *p, char *str);
void skipto(csi_t *csi, uchar inst); void skipto(csi_t *csi, uchar inst);
bool ftp_cmd(csi_t* csi, SOCKET ctrl_sock, char* cmdsrc, char* rsp);
bool ftp_get(csi_t* csi, SOCKET ctrl_sock, char* src, char* dest, bool dir=false);
SOCKET ftp_data_sock(csi_t* csi, SOCKET ctrl_sock, SOCKADDR_IN*);
void reset_logon_vars(void); void reset_logon_vars(void);
...@@ -658,6 +662,11 @@ public: ...@@ -658,6 +662,11 @@ public:
void telnet_gate(char* addr, ulong mode); // See TG_* for mode bits void telnet_gate(char* addr, ulong mode); // See TG_* for mode bits
}; };
extern SOCKET open_socket(int type);
extern int close_socket(SOCKET);
extern u_long resolve_ip(char *addr);
#endif #endif
#ifdef DLLEXPORT #ifdef DLLEXPORT
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment