ELinks 0.19.1
spartan.c File Reference
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <sys/types.h>
#include "elinks.h"
#include "cache/cache.h"
#include "config/options.h"
#include "cookies/cookies.h"
#include "intl/charsets.h"
#include "intl/libintl.h"
#include "main/module.h"
#include "network/connection.h"
#include "network/progress.h"
#include "network/socket.h"
#include "osdep/ascii.h"
#include "osdep/osdep.h"
#include "osdep/sysname.h"
#include "protocol/date.h"
#include "protocol/header.h"
#include "protocol/spartan/codes.h"
#include "protocol/spartan/spartan.h"
#include "protocol/uri.h"
#include "session/session.h"
#include "terminal/terminal.h"
#include "util/base64.h"
#include "util/conv.h"
#include "util/memory.h"
#include "util/string.h"
Include dependency graph for spartan.c:

Functions

static void done_spartan (struct module *)
static void spartan_got_header (struct socket *socket, struct read_buffer *rb)
static void spartan_end_request (struct connection *conn, struct connection_state state, int notrunc)
static void spartan_send_header (struct socket *)
void spartan_protocol_handler (struct connection *conn)
static void done_spartan_connection (struct connection *conn)
static struct spartan_connection_infoinit_spartan_connection_info (struct connection *conn)
static void read_spartan_data (struct socket *socket, struct read_buffer *rb)
static void read_more_spartan_data (struct connection *conn, struct read_buffer *rb, int already_got_anything)
static void read_spartan_data_done (struct connection *conn)
static int read_normal_spartan_data (struct connection *conn, struct read_buffer *rb)
static int get_header (struct read_buffer *rb)
static int get_spartan_code (struct read_buffer *rb)

Variables

struct module spartan_protocol_module

Function Documentation

◆ done_spartan()

void done_spartan ( struct module * mod)
static

◆ done_spartan_connection()

void done_spartan_connection ( struct connection * conn)
static

◆ get_header()

int get_header ( struct read_buffer * rb)
static

◆ get_spartan_code()

int get_spartan_code ( struct read_buffer * rb)
static

◆ init_spartan_connection_info()

struct spartan_connection_info * init_spartan_connection_info ( struct connection * conn)
static

◆ read_more_spartan_data()

void read_more_spartan_data ( struct connection * conn,
struct read_buffer * rb,
int already_got_anything )
static

◆ read_normal_spartan_data()

int read_normal_spartan_data ( struct connection * conn,
struct read_buffer * rb )
static

◆ read_spartan_data()

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

◆ read_spartan_data_done()

void read_spartan_data_done ( struct connection * conn)
static

◆ spartan_end_request()

void spartan_end_request ( struct connection * conn,
struct connection_state state,
int notrunc )
static

◆ spartan_got_header()

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

◆ spartan_protocol_handler()

void spartan_protocol_handler ( struct connection * conn)

◆ spartan_send_header()

void spartan_send_header ( struct socket * socket)
static

Variable Documentation

◆ spartan_protocol_module

struct module spartan_protocol_module
Initial value:
N_("spartan"),
)
#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
static void done_spartan(struct module *)
Definition spartan.c:59