FFmpeg  3.4.2
Data Fields
HTTPContext Struct Reference

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 FFServerStreamstream
 
int feed_streams [FFSERVER_MAX_STREAMS]
 
int switch_feed_streams [FFSERVER_MAX_STREAMS]
 
int switch_pending
 
AVFormatContextpfmt_ctx
 
int last_packet_sent
 
int suppress_log
 
DataRateData datarate
 
int wmp_client_id
 
char protocol [16]
 
char method [16]
 
char url [128]
 
char clean_url [128 *7]
 
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 [FFSERVER_MAX_STREAMS]
 
URLContextrtp_handles [FFSERVER_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
 
uint64_t chunksize
 
uint64_t off
 
uint64_t end_off
 
uint64_t filesize
 
char * location
 
HTTPAuthState auth_state
 
HTTPAuthState proxy_auth_state
 
char * http_proxy
 
char * headers
 
char * mime_type
 
char * user_agent
 
char * content_type
 
int willclose
 
int seekable
 Control seekability, 0 = disable, 1 = enable, -1 = probe. More...
 
int chunked_post
 
int end_chunked_post
 
int end_header
 
int multiple_requests
 
uint8_tpost_data
 
int post_datalen
 
int is_akamai
 
int is_mediagateway
 
char * cookies
 holds newline (
) delimited Set-Cookie header field values (without the "Set-Cookie: " field name) More...
 
AVDictionarycookie_dict
 
int icy
 
uint64_t icy_data_read
 
uint64_t icy_metaint
 
char * icy_metadata_headers
 
char * icy_metadata_packet
 
AVDictionarymetadata
 
AVDictionarychained_options
 
int send_expect_100
 
char * method
 
int reconnect
 
int reconnect_at_eof
 
int reconnect_streamed
 
int reconnect_delay
 
int reconnect_delay_max
 
int listen
 
char * resource
 
int reply_code
 
int is_multi_client
 
HandshakeState handshake_step
 
int is_connected_server
 

Detailed Description

Definition at line 126 of file ffserver.c.

Field Documentation

◆ state

enum HTTPState HTTPContext::state

◆ fd

int HTTPContext::fd

◆ from_addr

struct sockaddr_in HTTPContext::from_addr

◆ poll_entry

struct pollfd* HTTPContext::poll_entry

Definition at line 130 of file ffserver.c.

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

◆ timeout

int64_t HTTPContext::timeout

Definition at line 131 of file ffserver.c.

Referenced by handle_connection(), and start_wait_request().

◆ buffer_ptr

uint8_t* HTTPContext::buffer_ptr

◆ buffer_end

uint8_t * HTTPContext::buffer_end

◆ http_error

int HTTPContext::http_error

Definition at line 133 of file ffserver.c.

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

◆ post

int HTTPContext::post

Definition at line 134 of file ffserver.c.

Referenced by close_connection(), http_connect(), and http_parse_request().

◆ chunked_encoding

int HTTPContext::chunked_encoding

Definition at line 135 of file ffserver.c.

Referenced by http_receive_data(), and http_start_receive_data().

◆ chunk_size

int HTTPContext::chunk_size

Definition at line 136 of file ffserver.c.

Referenced by http_receive_data().

◆ next

struct HTTPContext* HTTPContext::next

◆ got_key_frame

int HTTPContext::got_key_frame

Definition at line 138 of file ffserver.c.

Referenced by http_prepare_data().

◆ data_count

int64_t HTTPContext::data_count

◆ feed_fd

int HTTPContext::feed_fd

Definition at line 141 of file ffserver.c.

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

◆ fmt_in

AVFormatContext* HTTPContext::fmt_in

Definition at line 143 of file ffserver.c.

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

◆ start_time

int64_t HTTPContext::start_time

Definition at line 144 of file ffserver.c.

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

◆ first_pts

int64_t HTTPContext::first_pts

Definition at line 145 of file ffserver.c.

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

◆ cur_pts

int64_t HTTPContext::cur_pts

Definition at line 146 of file ffserver.c.

Referenced by get_packet_send_clock(), and http_prepare_data().

◆ cur_frame_duration

int64_t HTTPContext::cur_frame_duration

Definition at line 147 of file ffserver.c.

Referenced by get_packet_send_clock(), and http_prepare_data().

◆ cur_frame_bytes

int HTTPContext::cur_frame_bytes

Definition at line 148 of file ffserver.c.

Referenced by get_packet_send_clock(), handle_connection(), and http_prepare_data().

◆ pts_stream_index

int HTTPContext::pts_stream_index

Definition at line 151 of file ffserver.c.

Referenced by open_input_stream().

◆ cur_clock

int64_t HTTPContext::cur_clock

Definition at line 152 of file ffserver.c.

◆ stream

struct FFServerStream* HTTPContext::stream

◆ feed_streams

int HTTPContext::feed_streams[FFSERVER_MAX_STREAMS]

Definition at line 156 of file ffserver.c.

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

◆ switch_feed_streams

int HTTPContext::switch_feed_streams[FFSERVER_MAX_STREAMS]

Definition at line 157 of file ffserver.c.

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

◆ switch_pending

int HTTPContext::switch_pending

Definition at line 158 of file ffserver.c.

Referenced by http_parse_request(), and http_prepare_data().

◆ pfmt_ctx

AVFormatContext* HTTPContext::pfmt_ctx

Definition at line 159 of file ffserver.c.

Referenced by close_connection(), and http_prepare_data().

◆ last_packet_sent

int HTTPContext::last_packet_sent

Definition at line 160 of file ffserver.c.

Referenced by close_connection(), and http_prepare_data().

◆ suppress_log

int HTTPContext::suppress_log

Definition at line 161 of file ffserver.c.

Referenced by http_parse_request(), and log_connection().

◆ datarate

DataRateData HTTPContext::datarate

Definition at line 162 of file ffserver.c.

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

◆ wmp_client_id

int HTTPContext::wmp_client_id

Definition at line 163 of file ffserver.c.

Referenced by http_parse_request().

◆ protocol

char HTTPContext::protocol[16]

◆ method [1/2]

char HTTPContext::method[16]

◆ url

char HTTPContext::url[128]

Definition at line 166 of file ffserver.c.

Referenced by compute_status(), http_parse_request(), log_connection(), and rtsp_parse_request().

◆ clean_url

char HTTPContext::clean_url[128 *7]

Definition at line 167 of file ffserver.c.

Referenced by compute_status().

◆ buffer_size

int HTTPContext::buffer_size

◆ buffer [1/2]

uint8_t* HTTPContext::buffer

◆ is_packetized

int HTTPContext::is_packetized

◆ packet_stream_index

int HTTPContext::packet_stream_index

Definition at line 171 of file ffserver.c.

Referenced by http_prepare_data(), and http_send_data().

◆ pb_buffer

uint8_t* HTTPContext::pb_buffer

◆ pb

AVIOContext* HTTPContext::pb

◆ seq

int HTTPContext::seq

Definition at line 176 of file ffserver.c.

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

◆ rtp_protocol

enum RTSPLowerTransport HTTPContext::rtp_protocol

◆ session_id

char HTTPContext::session_id[32]

◆ rtp_ctx

AVFormatContext* HTTPContext::rtp_ctx[FFSERVER_MAX_STREAMS]

Definition at line 181 of file ffserver.c.

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

◆ rtp_handles

URLContext* HTTPContext::rtp_handles[FFSERVER_MAX_STREAMS]

◆ rtsp_c

struct HTTPContext* HTTPContext::rtsp_c

Definition at line 187 of file ffserver.c.

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

◆ packet_buffer

uint8_t* HTTPContext::packet_buffer

Definition at line 188 of file ffserver.c.

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

◆ packet_buffer_ptr

uint8_t * HTTPContext::packet_buffer_ptr

Definition at line 188 of file ffserver.c.

Referenced by handle_connection(), and http_send_data().

◆ packet_buffer_end

uint8_t * HTTPContext::packet_buffer_end

Definition at line 188 of file ffserver.c.

Referenced by handle_connection(), and http_send_data().

◆ class

const AVClass* HTTPContext::class

Definition at line 62 of file http.c.

◆ hd

URLContext* HTTPContext::hd

◆ buffer [2/2]

unsigned char HTTPContext::buffer[BUFFER_SIZE]

Definition at line 64 of file http.c.

◆ buf_ptr

unsigned char * HTTPContext::buf_ptr

Definition at line 64 of file http.c.

Referenced by http_buf_read(), http_connect(), http_getc(), and http_seek_internal().

◆ buf_end

unsigned char * HTTPContext::buf_end

Definition at line 64 of file http.c.

Referenced by http_buf_read(), http_connect(), http_getc(), and http_seek_internal().

◆ line_count

int HTTPContext::line_count

Definition at line 65 of file http.c.

Referenced by http_connect(), and http_read_header().

◆ http_code

int HTTPContext::http_code

Definition at line 66 of file http.c.

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

◆ chunksize

uint64_t HTTPContext::chunksize

Definition at line 68 of file http.c.

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

◆ off

uint64_t HTTPContext::off

◆ end_off

uint64_t HTTPContext::end_off

Definition at line 69 of file http.c.

Referenced by http_buf_read(), and http_connect().

◆ filesize

uint64_t HTTPContext::filesize

◆ location

char* HTTPContext::location

Definition at line 70 of file http.c.

Referenced by ff_http_do_new_request(), http_open(), http_open_cnx_internal(), and parse_location().

◆ auth_state

HTTPAuthState HTTPContext::auth_state

Definition at line 71 of file http.c.

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

◆ proxy_auth_state

HTTPAuthState HTTPContext::proxy_auth_state

Definition at line 72 of file http.c.

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

◆ http_proxy

char* HTTPContext::http_proxy

Definition at line 73 of file http.c.

Referenced by http_open_cnx_internal().

◆ headers

char* HTTPContext::headers

Definition at line 74 of file http.c.

Referenced by http_connect(), http_open(), and http_write_reply().

◆ mime_type

char* HTTPContext::mime_type

Definition at line 75 of file http.c.

Referenced by process_line().

◆ user_agent

char* HTTPContext::user_agent

Definition at line 76 of file http.c.

Referenced by http_connect().

◆ content_type

char* HTTPContext::content_type

Definition at line 80 of file http.c.

Referenced by http_connect(), and http_write_reply().

◆ willclose

int HTTPContext::willclose

Definition at line 83 of file http.c.

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

◆ seekable

int HTTPContext::seekable

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

Definition at line 84 of file http.c.

Referenced by http_connect(), http_open(), http_read_header(), parse_content_range(), and process_line().

◆ chunked_post

int HTTPContext::chunked_post

Definition at line 85 of file http.c.

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

◆ end_chunked_post

int HTTPContext::end_chunked_post

Definition at line 87 of file http.c.

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

◆ end_header

int HTTPContext::end_header

Definition at line 89 of file http.c.

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

◆ multiple_requests

int HTTPContext::multiple_requests

Definition at line 91 of file http.c.

Referenced by http_connect().

◆ post_data

uint8_t* HTTPContext::post_data

Definition at line 92 of file http.c.

Referenced by http_connect().

◆ post_datalen

int HTTPContext::post_datalen

Definition at line 93 of file http.c.

Referenced by http_connect().

◆ is_akamai

int HTTPContext::is_akamai

Definition at line 94 of file http.c.

Referenced by parse_content_range(), and process_line().

◆ is_mediagateway

int HTTPContext::is_mediagateway

Definition at line 95 of file http.c.

Referenced by http_read_header(), and process_line().

◆ cookies

char* HTTPContext::cookies

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

Definition at line 96 of file http.c.

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

◆ cookie_dict

AVDictionary* HTTPContext::cookie_dict

Definition at line 98 of file http.c.

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

◆ icy

int HTTPContext::icy

Definition at line 99 of file http.c.

Referenced by http_connect().

◆ icy_data_read

uint64_t HTTPContext::icy_data_read

Definition at line 101 of file http.c.

Referenced by ff_http_do_new_request(), http_connect(), http_read(), and store_icy().

◆ icy_metaint

uint64_t HTTPContext::icy_metaint

Definition at line 103 of file http.c.

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

◆ icy_metadata_headers

char* HTTPContext::icy_metadata_headers

Definition at line 104 of file http.c.

Referenced by parse_icy().

◆ icy_metadata_packet

char* HTTPContext::icy_metadata_packet

Definition at line 105 of file http.c.

◆ metadata

AVDictionary* HTTPContext::metadata

Definition at line 106 of file http.c.

Referenced by parse_icy(), and update_metadata().

◆ chained_options

AVDictionary* HTTPContext::chained_options

Definition at line 112 of file http.c.

Referenced by http_close(), http_listen(), http_open(), and http_open_cnx().

◆ send_expect_100

int HTTPContext::send_expect_100

Definition at line 113 of file http.c.

Referenced by http_connect().

◆ method [2/2]

char* HTTPContext::method

Definition at line 114 of file http.c.

◆ reconnect

int HTTPContext::reconnect

Definition at line 115 of file http.c.

Referenced by http_read_stream().

◆ reconnect_at_eof

int HTTPContext::reconnect_at_eof

Definition at line 116 of file http.c.

Referenced by http_read_stream().

◆ reconnect_streamed

int HTTPContext::reconnect_streamed

Definition at line 117 of file http.c.

Referenced by http_read_stream().

◆ reconnect_delay

int HTTPContext::reconnect_delay

Definition at line 118 of file http.c.

Referenced by http_read_stream().

◆ reconnect_delay_max

int HTTPContext::reconnect_delay_max

Definition at line 119 of file http.c.

Referenced by http_read_stream().

◆ listen

int HTTPContext::listen

Definition at line 120 of file http.c.

Referenced by http_accept(), http_listen(), http_open(), http_shutdown(), and socket_open_listen().

◆ resource

char* HTTPContext::resource

Definition at line 121 of file http.c.

Referenced by process_line().

◆ reply_code

int HTTPContext::reply_code

Definition at line 122 of file http.c.

Referenced by http_handshake(), http_listen(), and http_write_reply().

◆ is_multi_client

int HTTPContext::is_multi_client

Definition at line 123 of file http.c.

Referenced by http_accept().

◆ handshake_step

HandshakeState HTTPContext::handshake_step

Definition at line 124 of file http.c.

Referenced by http_handshake(), and http_listen().

◆ is_connected_server

int HTTPContext::is_connected_server

Definition at line 125 of file http.c.

Referenced by http_handshake(), and process_line().


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