|
ELinks 0.19.1
|
#include <errno.h>#include <stdlib.h>#include <string.h>#include <sys/types.h>#include "elinks.h"#include "cache/cache.h"#include "intl/libintl.h"#include "main/module.h"#include "network/connection.h"#include "network/socket.h"#include "protocol/common.h"#include "protocol/gopher/gopher.h"#include "protocol/protocol.h"#include "protocol/uri.h"#include "util/conv.h"#include "util/memory.h"#include "util/string.h"
Data Structures | |
| struct | gopher_entity_info |
| struct | gopher_connection_info |
Macros | |
| #define | DEFAULT_GOPHER_ENTITY GOPHER_DIRECTORY |
| #define | entity_needs_gopher_access(entity) |
Typedefs | |
| typedef char | gopher_entity_T |
Enumerations | |
| enum | gopher_entity { GOPHER_UNKNOWN = 0 , GOPHER_FILE = '0' , GOPHER_DIRECTORY = '1' , GOPHER_CSO = '2' , GOPHER_ERROR = '3' , GOPHER_MACBINHEX = '4' , GOPHER_PCBINARY = '5' , GOPHER_UUENCODED = '6' , GOPHER_INDEX = '7' , GOPHER_TELNET = '8' , GOPHER_BINARY = '9' , GOPHER_GIF = 'g' , GOPHER_HTML = 'h' , GOPHER_CHTML = 'H' , GOPHER_MIME = 'm' , GOPHER_SOUND = 's' , GOPHER_WWW = 'w' , GOPHER_IMAGE = 'I' , GOPHER_TN3270 = 'T' , GOPHER_INFO = 'i' , GOPHER_DUPLICATE = '+' , GOPHER_PLUS_IMAGE = ':' , GOPHER_PLUS_MOVIE = ';' , GOPHER_PLUS_SOUND = '<' , GOPHER_PLUS_PDF = 'P' } |
Functions | |
| static struct gopher_entity_info * | get_gopher_entity_info (gopher_entity_T type) |
| static const char * | get_gopher_entity_description (gopher_entity_T type) |
| static void | add_uri_decoded (struct string *command, char *string, int length, int replace_plus) |
| static struct connection_state | init_gopher_index_cache_entry (struct connection *conn) |
| static struct connection_state | add_gopher_command (struct connection *conn, struct string *command, gopher_entity_T entity, char *selector, int selectorlen) |
| static struct connection_state | init_gopher_connection_info (struct connection *conn) |
| static void | add_gopher_link (struct string *buffer, const char *text, const char *addr) |
| static void | add_gopher_search_field (struct string *buffer, const char *text, const char *addr) |
| static void | add_gopher_description (struct string *buffer, gopher_entity_T entity) |
| static void | encode_selector_string (struct string *buffer, char *selector) |
| void | add_gopher_menu_line (struct string *buffer, char *line) |
| char * | get_gopher_line_end (char *data, int datalen) |
| static char * | check_gopher_last_line (char *line, char *end) |
| static struct connection_state | read_gopher_directory_data (struct connection *conn, struct read_buffer *rb) |
| static struct cache_entry * | init_gopher_cache_entry (struct connection *conn) |
| static void | read_gopher_response_data (struct socket *socket, struct read_buffer *rb) |
| static void | send_gopher_command (struct socket *socket) |
| void | gopher_protocol_handler (struct connection *conn) |
Variables | |
| union option_info | gopher_options [] |
| struct module | gopher_protocol_module |
| static struct gopher_entity_info | gopher_entity_info [] |
| #define DEFAULT_GOPHER_ENTITY GOPHER_DIRECTORY |
| #define entity_needs_gopher_access | ( | entity | ) |
| typedef char gopher_entity_T |
| enum gopher_entity |
|
static |
|
static |
|
static |
| void add_gopher_menu_line | ( | struct string * | buffer, |
| char * | line ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| char * get_gopher_line_end | ( | char * | data, |
| int | datalen ) |
| void gopher_protocol_handler | ( | struct connection * | conn | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| union option_info gopher_options[] |