ELinks 0.18.0
fsp.c File Reference
#include <errno.h>
#include <sys/types.h>
#include <fsplib.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "elinks.h"
#include "cache/cache.h"
#include "config/options.h"
#include "intl/libintl.h"
#include "main/module.h"
#include "main/select.h"
#include "network/connection.h"
#include "network/socket.h"
#include "osdep/osdep.h"
#include "protocol/auth/auth.h"
#include "protocol/common.h"
#include "protocol/protocol.h"
#include "protocol/fsp/fsp.h"
#include "protocol/uri.h"
#include "util/conv.h"
#include "util/memory.h"
#include "util/snprintf.h"
#include "util/string.h"
Include dependency graph for fsp.c:

Macros

#define _GNU_SOURCE   /* Needed for asprintf() */
#define READ_SIZE   4096

Functions

static void fsp_error (struct connection_state error)
static int compare (const void *av, const void *bv)
static void display_entry (const FSP_RDENTRY *fentry, const char dircolor[])
static void sort_and_display_entries (FSP_DIR *dir, const char dircolor[])
static void fsp_directory (FSP_SESSION *ses, struct uri *uri)
static void do_fsp (struct connection *conn)
static void prompt_username_pw (struct connection *conn)
static void fsp_got_error (struct socket *socket, struct read_buffer *rb)
static void fsp_got_data (struct socket *socket, struct read_buffer *rb)
static void fsp_got_header (struct socket *socket, struct read_buffer *rb)
void fsp_protocol_handler (struct connection *conn)

Variables

struct module fsp_protocol_module

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE   /* Needed for asprintf() */

◆ READ_SIZE

#define READ_SIZE   4096

Function Documentation

◆ compare()

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

◆ display_entry()

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

◆ do_fsp()

void do_fsp ( struct connection * conn)
static

◆ fsp_directory()

void fsp_directory ( FSP_SESSION * ses,
struct uri * uri )
static

◆ fsp_error()

void fsp_error ( struct connection_state error)
static

◆ fsp_got_data()

void fsp_got_data ( struct socket * socket,
struct read_buffer * rb )
static

◆ fsp_got_error()

void fsp_got_error ( struct socket * socket,
struct read_buffer * rb )
static

◆ fsp_got_header()

void fsp_got_header ( struct socket * socket,
struct read_buffer * rb )
static

◆ fsp_protocol_handler()

void fsp_protocol_handler ( struct connection * conn)

◆ prompt_username_pw()

void prompt_username_pw ( struct connection * conn)
static

◆ sort_and_display_entries()

void sort_and_display_entries ( FSP_DIR * dir,
const char dircolor[] )
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