#include "server-connect-rec.h"
} SILC_SERVER_CONNECT_REC;
+typedef struct {
+ SilcClientEntry client_entry;
+ SilcClientConnection conn;
+ SilcUInt32 session_id;
+ char *filepath;
+ bool send;
+
+ long starttime; /* Start time of transfer */
+ double kps; /* Kilos per second */
+ SilcUInt64 offset; /* Current offset */
+ SilcUInt64 filesize; /* Total file size */
+ SilcUInt32 percent; /* Percent of current transmission */
+} *FtpSession;
+
#define STRUCT_SERVER_CONNECT_REC SILC_SERVER_CONNECT_REC
typedef struct {
#include "server-rec.h"
GSList *idles; /* Idle queue - send these commands to server
if there's nothing else to do */
+
+ SilcDList ftp_sessions;
+ FtpSession current_session;
gpointer chanqueries;
SilcClientConnection conn;
+ SilcUInt32 umode;
} SILC_SERVER_REC;
SILC_SERVER_REC *silc_server_connect(SILC_SERVER_CONNECT_REC *conn);
const char *command, const char *args);
void silc_server_init(void);
void silc_server_deinit(void);
+void silc_server_free_ftp(SILC_SERVER_REC *server,
+ SilcClientEntry client_entry);
#endif