ELinks 0.18.0
response.c File Reference
#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 "mime/backend/common.h"
#include "network/connection.h"
#include "network/socket.h"
#include "protocol/header.h"
#include "protocol/nntp/codes.h"
#include "protocol/nntp/connection.h"
#include "protocol/nntp/nntp.h"
#include "protocol/nntp/response.h"
#include "protocol/protocol.h"
#include "protocol/uri.h"
#include "util/conv.h"
#include "util/memory.h"
#include "util/string.h"
Include dependency graph for response.c:

Functions

static char * get_nntp_line_end (char *data, int datalen)
 
static char * check_nntp_line (char *line, char *end)
 
static char * get_nntp_message_header_end (char *data, int datalen)
 
static struct connection_state init_nntp_header (struct connection *conn, struct read_buffer *rb)
 
static char * get_nntp_title (struct connection *conn)
 
static void decode_q_segment (struct string *str, char *in, char *end)
 
static void decode_b_segment (struct string *str, char *in, char *end)
 
static void add_header_to_string (struct string *str, char *header)
 
static void add_nntp_html_start (struct string *html, struct connection *conn)
 
static void add_nntp_html_end (struct string *html, struct connection *conn)
 
static void add_nntp_html_line (struct string *html, struct connection *conn, char *line)
 
struct connection_state read_nntp_response_data (struct connection *conn, struct read_buffer *rb)
 
static int parse_nntp_group_parameters (struct nntp_connection_info *nntp, char *pos, char *end)
 
nntp_code_T get_nntp_response_code (struct connection *conn, struct read_buffer *rb)
 

Function Documentation

◆ add_header_to_string()

static void add_header_to_string ( struct string * str,
char * header )
static

◆ add_nntp_html_end()

static void add_nntp_html_end ( struct string * html,
struct connection * conn )
static

◆ add_nntp_html_line()

static void add_nntp_html_line ( struct string * html,
struct connection * conn,
char * line )
static

◆ add_nntp_html_start()

static void add_nntp_html_start ( struct string * html,
struct connection * conn )
static

◆ check_nntp_line()

static char * check_nntp_line ( char * line,
char * end )
inlinestatic

◆ decode_b_segment()

static void decode_b_segment ( struct string * str,
char * in,
char * end )
static

◆ decode_q_segment()

static void decode_q_segment ( struct string * str,
char * in,
char * end )
static

◆ get_nntp_line_end()

static char * get_nntp_line_end ( char * data,
int datalen )
static

◆ get_nntp_message_header_end()

static char * get_nntp_message_header_end ( char * data,
int datalen )
inlinestatic

◆ get_nntp_response_code()

nntp_code_T get_nntp_response_code ( struct connection * conn,
struct read_buffer * rb )

◆ get_nntp_title()

static char * get_nntp_title ( struct connection * conn)
static

◆ init_nntp_header()

static struct connection_state init_nntp_header ( struct connection * conn,
struct read_buffer * rb )
static

◆ parse_nntp_group_parameters()

static int parse_nntp_group_parameters ( struct nntp_connection_info * nntp,
char * pos,
char * end )
static

◆ read_nntp_response_data()

struct connection_state read_nntp_response_data ( struct connection * conn,
struct read_buffer * rb )