VLC 4.0.0-dev
connmgr.c File Reference
Include dependency graph for connmgr.c:

Data Structures

struct  vlc_http_mgr
 

Functions

void vlc_http_err (void *ctx, const char *fmt,...)
 
void vlc_http_dbg (void *ctx, const char *fmt,...)
 
vlc_tls_tvlc_https_connect (vlc_tls_client_t *creds, const char *name, unsigned port, bool *restrict two)
 
static char * vlc_http_proxy_find (const char *hostname, unsigned port, bool secure)
 
static struct vlc_http_connvlc_http_mgr_find (struct vlc_http_mgr *mgr, const char *host, unsigned port)
 
static void vlc_http_mgr_release (struct vlc_http_mgr *mgr, struct vlc_http_conn *conn)
 
static struct vlc_http_msgvlc_http_mgr_reuse (struct vlc_http_mgr *mgr, const char *host, unsigned port, const struct vlc_http_msg *req, bool payload)
 
static struct vlc_http_msgvlc_https_request (struct vlc_http_mgr *mgr, const char *host, unsigned port, const struct vlc_http_msg *req, bool idempotent, bool payload)
 
static struct vlc_http_msgvlc_http_request (struct vlc_http_mgr *mgr, const char *host, unsigned port, const struct vlc_http_msg *req, bool idempotent, bool payload)
 
struct vlc_http_msgvlc_http_mgr_request (struct vlc_http_mgr *mgr, bool https, const char *host, unsigned port, const struct vlc_http_msg *m, bool idempotent, bool payload)
 Sends an HTTP request. More...
 
struct vlc_http_cookie_jar_tvlc_http_mgr_get_jar (struct vlc_http_mgr *mgr)
 
struct vlc_http_mgrvlc_http_mgr_create (vlc_object_t *obj, struct vlc_http_cookie_jar_t *jar)
 Creates an HTTP connection manager. More...
 
void vlc_http_mgr_destroy (struct vlc_http_mgr *mgr)
 Destroys an HTTP connection manager. More...
 

Function Documentation

◆ vlc_http_dbg()

void vlc_http_dbg ( void *  ctx,
const char *  fmt,
  ... 
)

References VLC_MSG_DBG, and vlc_vaLog().

◆ vlc_http_err()

void vlc_http_err ( void *  ctx,
const char *  fmt,
  ... 
)

References VLC_MSG_ERR, and vlc_vaLog().

◆ vlc_http_mgr_find()

static struct vlc_http_conn * vlc_http_mgr_find ( struct vlc_http_mgr mgr,
const char *  host,
unsigned  port 
)
static

References vlc_http_mgr::conn.

Referenced by vlc_http_mgr_reuse().

◆ vlc_http_mgr_release()

static void vlc_http_mgr_release ( struct vlc_http_mgr mgr,
struct vlc_http_conn conn 
)
static

◆ vlc_http_mgr_reuse()

static struct vlc_http_msg * vlc_http_mgr_reuse ( struct vlc_http_mgr mgr,
const char *  host,
unsigned  port,
const struct vlc_http_msg req,
bool  payload 
)
static

◆ vlc_http_proxy_find()

static char * vlc_http_proxy_find ( const char *  hostname,
unsigned  port,
bool  secure 
)
static

◆ vlc_http_request()

static struct vlc_http_msg * vlc_http_request ( struct vlc_http_mgr mgr,
const char *  host,
unsigned  port,
const struct vlc_http_msg req,
bool  idempotent,
bool  payload 
)
static

◆ vlc_https_connect()

vlc_tls_t * vlc_https_connect ( vlc_tls_client_t creds,
const char *  name,
unsigned  port,
bool *restrict  two 
)

◆ vlc_https_request()