ELinks 0.16.1.1
connection Struct Reference

#include <connection.h>

Collaboration diagram for connection:

Data Fields

void * magic1
struct connectionnext
struct connectionprev
void * magic2
struct download list downloads
struct progressprogress
struct progresshttp_upload_progress
 Progress of sending the request and attached files to the server.
struct uriuri
struct uriproxied_uri
struct urireferrer
cache_mode_T cache_mode
struct cache_entrycached
off_t from
off_t received
off_t est_length
stream_encoding_T content_encoding
struct stream_encodedstream
void(* done )(struct connection *)
unsigned int id
struct connection_state state
struct connection_state prev_error
struct socketsocket
struct socketdata_socket
int tries
timer_id_T timer
milliseconds_T xhr_timeout
unsigned int running:1
unsigned int unrestartable:1
unsigned int detached:1
unsigned int cgi:1
int pri [PRIORITIES]
void * info

Field Documentation

◆ cache_mode

cache_mode_T connection::cache_mode

◆ cached

struct cache_entry* connection::cached

◆ cgi

unsigned int connection::cgi

◆ content_encoding

stream_encoding_T connection::content_encoding

◆ data_socket

struct socket* connection::data_socket

◆ detached

unsigned int connection::detached

◆ done

void(* connection::done) (struct connection *)

◆ downloads

struct download list connection::downloads

◆ est_length

off_t connection::est_length

◆ from

off_t connection::from

◆ http_upload_progress

struct progress* connection::http_upload_progress

Progress of sending the request and attached files to the server.

This happens before any download.

Currently, ELinks supports file uploads only in HTTP and local CGI. Therefore, upload_stat_timer() in connection.c assumes that info points to struct http_connection_info whenever http_upload_progress is not NULL.

◆ id

unsigned int connection::id

◆ info

void* connection::info

◆ magic1

void* connection::magic1

◆ magic2

void* connection::magic2

◆ next

struct connection* connection::next

◆ prev

struct connection* connection::prev

◆ prev_error

struct connection_state connection::prev_error

◆ pri

int connection::pri[PRIORITIES]

◆ progress

struct progress* connection::progress

◆ proxied_uri

struct uri* connection::proxied_uri

◆ received

off_t connection::received

◆ referrer

struct uri* connection::referrer

◆ running

unsigned int connection::running

◆ socket

struct socket* connection::socket

◆ state

struct connection_state connection::state

◆ stream

struct stream_encoded* connection::stream

◆ timer

timer_id_T connection::timer

◆ tries

int connection::tries

◆ unrestartable

unsigned int connection::unrestartable

◆ uri

struct uri* connection::uri

◆ xhr_timeout

milliseconds_T connection::xhr_timeout

The documentation for this struct was generated from the following file: