ELinks 0.18.0
fsp2.c File Reference
#include <sys/types.h>
#include <sys/time.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include <string.h>
#include <sys/stat.h>
#include <dirent.h>
#include "elinks.h"
#include "intl/libintl.h"
#include "main/select.h"
#include "main/timer.h"
#include "network/connection.h"
#include "protocol/auth/auth.h"
#include "protocol/common.h"
#include "protocol/fsp/fsplib.h"
#include "protocol/fsp/lock.h"
#include "protocol/uri.h"
#include "util/conv.h"
Include dependency graph for fsp2.c:

Data Structures

struct  fsp_connection_info
 

Typedefs

typedef void(* return_handler_T) (void *data)
 

Functions

static void fsp_stat_continue (void *data)
 
static int buildfilename (const FSP_SESSION *s, FSP_PKT *out, const char *dirname)
 
static size_t fsp_pkt_write (const FSP_PKT *p, void *space)
 
static int fsp_pkt_read (FSP_PKT *p, const void *space, size_t recv_len)
 
static void fsp_transaction_send_loop (void *data)
 
static void try_fsp_transaction (void *data)
 
static void fsp_transaction_continue (void *data)
 
static FSP_SESSIONfsp_open_session (const char *host, unsigned short port, const char *password)
 
static void bye_bye (void *data)
 
static void try_fsp_close_session (struct connection *conn)
 
static int fsp_readdir_native (FSP_DIR *dir, FSP_RDENTRY *entry, FSP_RDENTRY **result)
 
static int fsp_closedir (FSP_DIR *dirp)
 
static FSP_FILEfsp_fopen (struct connection *conn, const char *path, const char *modeflags)
 
static int fsp_fclose (FSP_FILE *file)
 
static void try_fsp_stat (struct connection *conn, const char *path)
 
static void try_fsp_read_file (void *data)
 
static void try_fsp_opendir (void *data)
 
static void display_entry (struct connection *conn, const FSP_RDENTRY *fentry, const char dircolor[])
 
static int compare (const void *av, const void *bv)
 
static void sort_and_display_entries (struct connection *conn, FSP_DIR *dir, const char dircolor[])
 
static void show_fsp_directory (struct connection *conn)
 
static void done_fsp_connection (struct connection *conn)
 
static void do_fsp (struct connection *conn)
 
void fsp_protocol_handler (struct connection *conn)
 

Variables

struct module fsp_protocol_module
 

Typedef Documentation

◆ return_handler_T

typedef void(* return_handler_T) (void *data)

Function Documentation

◆ buildfilename()

static int buildfilename ( const FSP_SESSION * s,
FSP_PKT * out,
const char * dirname )
static

◆ bye_bye()

static void bye_bye ( void * data)
static

◆ compare()

static int compare ( const void * av,
const void * bv )
static

◆ display_entry()

static void display_entry ( struct connection * conn,
const FSP_RDENTRY * fentry,
const char dircolor[] )
static

◆ do_fsp()

static void do_fsp ( struct connection * conn)
static

◆ done_fsp_connection()

static void done_fsp_connection ( struct connection * conn)
static

◆ fsp_closedir()

static int fsp_closedir ( FSP_DIR * dirp)
static

◆ fsp_fclose()

static int fsp_fclose ( FSP_FILE * file)
static

◆ fsp_fopen()

static FSP_FILE * fsp_fopen ( struct connection * conn,
const char * path,
const char * modeflags )
static

◆ fsp_open_session()

static FSP_SESSION * fsp_open_session ( const char * host,
unsigned short port,
const char * password )
static

◆ fsp_pkt_read()

static int fsp_pkt_read ( FSP_PKT * p,
const void * space,
size_t recv_len )
static

◆ fsp_pkt_write()

static size_t fsp_pkt_write ( const FSP_PKT * p,
void * space )
static

◆ fsp_protocol_handler()

void fsp_protocol_handler ( struct connection * conn)

◆ fsp_readdir_native()

static int fsp_readdir_native ( FSP_DIR * dir,
FSP_RDENTRY * entry,
FSP_RDENTRY ** result )
static

◆ fsp_stat_continue()

static void fsp_stat_continue ( void * data)
static

◆ fsp_transaction_continue()

static void fsp_transaction_continue ( void * data)
static

◆ fsp_transaction_send_loop()

static void fsp_transaction_send_loop ( void * data)
static

◆ show_fsp_directory()

static void show_fsp_directory ( struct connection * conn)
static

◆ sort_and_display_entries()

static void sort_and_display_entries ( struct connection * conn,
FSP_DIR * dir,
const char dircolor[] )
static

◆ try_fsp_close_session()

static void try_fsp_close_session ( struct connection * conn)
static

◆ try_fsp_opendir()

static void try_fsp_opendir ( void * data)
static

◆ try_fsp_read_file()

static void try_fsp_read_file ( void * data)
static

◆ try_fsp_stat()

static void try_fsp_stat ( struct connection * conn,
const char * path )
static

◆ try_fsp_transaction()

static void try_fsp_transaction ( void * data)
static

Variable Documentation

◆ fsp_protocol_module

struct module fsp_protocol_module
Initial value:
N_("FSP"),
)
#define NULL
Definition explodename.c:35
#define N_(msg)
Definition libintl.h:25
#define struct_module(name, options, hooks, submods, data, init, done, getname)
Definition module.h:47