HTTPContext Struct Reference
Collaboration diagram for HTTPContext:
Collaboration graph

Data Fields

enum HTTPState state
 
int fd
 
struct sockaddr_in from_addr
 
struct pollfd * poll_entry
 
int64_t timeout
 
uint8_tbuffer_ptr
 
uint8_tbuffer_end
 
int http_error
 
int post
 
int chunked_encoding
 
int chunk_size
 
struct HTTPContextnext
 
int got_key_frame
 
int64_t data_count
 
int feed_fd
 
AVFormatContextfmt_in
 
int64_t start_time
 
int64_t first_pts
 
int64_t cur_pts
 
int64_t cur_frame_duration
 
int cur_frame_bytes
 
int pts_stream_index
 
int64_t cur_clock
 
struct FFStreamstream
 
int feed_streams [MAX_STREAMS]
 
int switch_feed_streams [MAX_STREAMS]
 
int switch_pending
 
AVFormatContext fmt_ctx
 
int last_packet_sent
 
int suppress_log
 
DataRateData datarate
 
int wmp_client_id
 
char protocol [16]
 
char method [16]
 
char url [128]
 
int buffer_size
 
uint8_tbuffer
 
int is_packetized
 
int packet_stream_index
 
uint8_tpb_buffer
 
AVIOContextpb
 
int seq
 
enum RTSPLowerTransport rtp_protocol
 
char session_id [32]
 
AVFormatContextrtp_ctx [MAX_STREAMS]
 
URLContextrtp_handles [MAX_STREAMS]
 
struct HTTPContextrtsp_c
 
uint8_tpacket_buffer
 
uint8_tpacket_buffer_ptr
 
uint8_tpacket_buffer_end
 
const AVClassclass
 
URLContexthd
 
unsigned char buffer [BUFFER_SIZE]
 
unsigned char * buf_ptr
 
unsigned char * buf_end
 
int line_count
 
int http_code
 
int64_t chunksize
 Used if "Transfer-Encoding: chunked" otherwise -1. More...
 
char * content_type
 
char * user_agent
 
int64_t off
 
int64_t filesize
 
char location [MAX_URL_SIZE]
 
HTTPAuthState auth_state
 
HTTPAuthState proxy_auth_state
 
char * headers
 
int willclose
 Set if the server correctly handles Connection: close and will close the connection after feeding us the content. More...
 
int seekable
 Control seekability, 0 = disable, 1 = enable, -1 = probe. More...
 
int chunked_post
 
int end_chunked_post
 A flag which indicates if the end of chunked encoding has been sent. More...
 
int end_header
 A flag which indicates we have finished to read POST reply. More...
 
int multiple_requests
 A flag which indicates if we use persistent connections. More...
 
uint8_tpost_data
 
int post_datalen
 
int is_akamai
 
int rw_timeout
 
char * mime_type
 
char * cookies
 holds newline (
) delimited Set-Cookie header field values (without the "Set-Cookie: " field name) More...
 

Detailed Description

Definition at line 129 of file ffserver.c.

Field Documentation

HTTPAuthState HTTPContext::auth_state

Definition at line 53 of file http.c.

Referenced by http_connect(), http_open_cnx(), and process_line().

unsigned char * HTTPContext::buf_end

Definition at line 45 of file http.c.

Referenced by http_buf_read(), http_connect(), http_get_file_handle(), http_getc(), and http_seek().

unsigned char * HTTPContext::buf_ptr

Definition at line 45 of file http.c.

Referenced by http_buf_read(), http_connect(), http_get_file_handle(), http_getc(), and http_seek().

unsigned char HTTPContext::buffer[BUFFER_SIZE]

Definition at line 45 of file http.c.

int HTTPContext::buffer_size
int HTTPContext::chunk_size

Definition at line 139 of file ffserver.c.

Referenced by http_receive_data().

int HTTPContext::chunked_encoding

Definition at line 138 of file ffserver.c.

Referenced by http_receive_data(), and http_start_receive_data().

int HTTPContext::chunked_post

Definition at line 58 of file http.c.

Referenced by http_connect(), http_shutdown(), and http_write().

int64_t HTTPContext::chunksize

Used if "Transfer-Encoding: chunked" otherwise -1.

Definition at line 48 of file http.c.

Referenced by http_buf_read(), http_read(), http_read_header(), and process_line().

const AVClass* HTTPContext::class

Definition at line 43 of file http.c.

char* HTTPContext::content_type

Definition at line 49 of file http.c.

Referenced by http_connect().

char* HTTPContext::cookies

holds newline (
) delimited Set-Cookie header field values (without the "Set-Cookie: " field name)

Definition at line 67 of file http.c.

Referenced by get_cookies(), http_connect(), and process_line().

int64_t HTTPContext::cur_clock

Definition at line 155 of file ffserver.c.

int HTTPContext::cur_frame_bytes

Definition at line 151 of file ffserver.c.

Referenced by get_packet_send_clock(), and http_prepare_data().

int64_t HTTPContext::cur_frame_duration

Definition at line 150 of file ffserver.c.

Referenced by get_packet_send_clock(), and http_prepare_data().

int64_t HTTPContext::cur_pts

Definition at line 149 of file ffserver.c.

Referenced by get_packet_send_clock(), and http_prepare_data().

int64_t HTTPContext::data_count
DataRateData HTTPContext::datarate

Definition at line 165 of file ffserver.c.

Referenced by compute_status(), http_receive_data(), and http_send_data().

int HTTPContext::end_chunked_post

A flag which indicates if the end of chunked encoding has been sent.

Definition at line 59 of file http.c.

Referenced by http_close(), http_connect(), http_read(), and http_shutdown().

int HTTPContext::end_header

A flag which indicates we have finished to read POST reply.

Definition at line 60 of file http.c.

Referenced by http_connect(), http_read(), and process_line().

int HTTPContext::feed_fd

Definition at line 144 of file ffserver.c.

Referenced by close_connection(), http_receive_data(), and http_start_receive_data().

int HTTPContext::feed_streams[MAX_STREAMS]

Definition at line 159 of file ffserver.c.

Referenced by compute_status(), http_parse_request(), and modify_current_stream().

int64_t HTTPContext::filesize
int64_t HTTPContext::first_pts

Definition at line 148 of file ffserver.c.

Referenced by http_prepare_data(), open_input_stream(), and rtsp_cmd_pause().

AVFormatContext HTTPContext::fmt_ctx

Definition at line 162 of file ffserver.c.

Referenced by close_connection(), and http_prepare_data().

AVFormatContext* HTTPContext::fmt_in

Definition at line 146 of file ffserver.c.

Referenced by close_connection(), http_prepare_data(), and open_input_stream().

struct sockaddr_in HTTPContext::from_addr
int HTTPContext::got_key_frame

Definition at line 141 of file ffserver.c.

Referenced by http_prepare_data().

char* HTTPContext::headers

Definition at line 55 of file http.c.

Referenced by http_connect(), and http_open().

int HTTPContext::http_code

Definition at line 47 of file http.c.

Referenced by http_connect(), http_get_file_handle(), http_open_cnx(), and process_line().

int HTTPContext::http_error

Definition at line 136 of file ffserver.c.

Referenced by handle_connection(), http_parse_request(), and log_connection().

int HTTPContext::is_akamai

Definition at line 64 of file http.c.

Referenced by process_line().

int HTTPContext::is_packetized
int HTTPContext::last_packet_sent

Definition at line 163 of file ffserver.c.

Referenced by close_connection(), and http_prepare_data().

int HTTPContext::line_count

Definition at line 46 of file http.c.

Referenced by http_connect(), http_get_file_handle(), and http_read_header().

char HTTPContext::location[MAX_URL_SIZE]

Definition at line 52 of file http.c.

Referenced by ff_http_do_new_request(), http_open(), http_open_cnx(), and process_line().

char* HTTPContext::mime_type

Definition at line 66 of file http.c.

Referenced by process_line().

int HTTPContext::multiple_requests

A flag which indicates if we use persistent connections.

Definition at line 61 of file http.c.

Referenced by http_connect().

int64_t HTTPContext::off

Definition at line 51 of file http.c.

Referenced by ff_http_do_new_request(), http_buf_read(), http_connect(), http_seek(), and process_line().

uint8_t* HTTPContext::packet_buffer

Definition at line 190 of file ffserver.c.

Referenced by close_connection(), handle_connection(), and http_send_data().

uint8_t * HTTPContext::packet_buffer_end

Definition at line 190 of file ffserver.c.

Referenced by handle_connection(), and http_send_data().

uint8_t * HTTPContext::packet_buffer_ptr

Definition at line 190 of file ffserver.c.

Referenced by handle_connection(), and http_send_data().

int HTTPContext::packet_stream_index

Definition at line 173 of file ffserver.c.

Referenced by http_prepare_data(), and http_send_data().

uint8_t* HTTPContext::pb_buffer
struct pollfd* HTTPContext::poll_entry

Definition at line 133 of file ffserver.c.

Referenced by handle_connection(), http_server(), new_connection(), and rtp_new_connection().

int HTTPContext::post

Definition at line 137 of file ffserver.c.

Referenced by close_connection(), and http_parse_request().

uint8_t* HTTPContext::post_data

Definition at line 62 of file http.c.

Referenced by http_connect().

int HTTPContext::post_datalen

Definition at line 63 of file http.c.

Referenced by http_connect().

char HTTPContext::protocol[16]
HTTPAuthState HTTPContext::proxy_auth_state

Definition at line 54 of file http.c.

Referenced by http_connect(), http_get_file_handle(), http_open_cnx(), and process_line().

int HTTPContext::pts_stream_index

Definition at line 154 of file ffserver.c.

Referenced by open_input_stream().

AVFormatContext* HTTPContext::rtp_ctx[MAX_STREAMS]

Definition at line 183 of file ffserver.c.

Referenced by close_connection(), http_prepare_data(), rtp_new_av_stream(), and rtsp_cmd_setup().

URLContext* HTTPContext::rtp_handles[MAX_STREAMS]
enum RTSPLowerTransport HTTPContext::rtp_protocol
struct HTTPContext* HTTPContext::rtsp_c

Definition at line 189 of file ffserver.c.

Referenced by close_connection(), http_send_data(), and rtp_new_av_stream().

int HTTPContext::rw_timeout

Definition at line 65 of file http.c.

Referenced by http_get_file_handle(), and http_open_cnx().

int HTTPContext::seekable

Control seekability, 0 = disable, 1 = enable, -1 = probe.

Definition at line 57 of file http.c.

Referenced by http_connect(), http_get_file_handle(), http_open(), and process_line().

int HTTPContext::seq

Definition at line 178 of file ffserver.c.

Referenced by rtsp_cmd_options(), rtsp_parse_request(), and rtsp_reply_header().

char HTTPContext::session_id[32]
int64_t HTTPContext::start_time

Definition at line 147 of file ffserver.c.

Referenced by get_server_clock(), http_prepare_data(), and open_input_stream().

int HTTPContext::suppress_log

Definition at line 164 of file ffserver.c.

Referenced by http_parse_request(), and log_connection().

int HTTPContext::switch_feed_streams[MAX_STREAMS]

Definition at line 160 of file ffserver.c.

Referenced by http_parse_request(), http_prepare_data(), and modify_current_stream().

int HTTPContext::switch_pending

Definition at line 161 of file ffserver.c.

Referenced by http_parse_request(), and http_prepare_data().

int64_t HTTPContext::timeout

Definition at line 134 of file ffserver.c.

Referenced by handle_connection(), and start_wait_request().

char* HTTPContext::user_agent

Definition at line 50 of file http.c.

Referenced by http_connect().

int HTTPContext::willclose

Set if the server correctly handles Connection: close and will close the connection after feeding us the content.

Definition at line 56 of file http.c.

Referenced by http_buf_read(), http_connect(), and process_line().

int HTTPContext::wmp_client_id

Definition at line 166 of file ffserver.c.

Referenced by http_parse_request().


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