http_t
http_t *http = NULL; /* HTTP connection to server */
(ipp_t *(*)(http_t *, ipp_t *, const char *, const char *))
smb_cups.httpClose = (void (*)(http_t *))
smb_cups.httpConnect = (http_t *(*)(const char *, int))
ipp_t *(*cupsDoFileRequest)(http_t *, ipp_t *,
void (*httpClose)(http_t *);
http_t *(*httpConnect)(const char *, int);
httpSetCookie(http_t *http, /* I - Connection */
httpWait(http_t *http, /* I - HTTP data */
static int http_send(http_t *http, http_state_t request,
httpWrite(http_t *http, /* I - HTTP data */
static int http_wait(http_t *http, int msec);
static int http_upgrade(http_t *http);
static int http_setup_ssl(http_t *http);
static void http_shutdown_ssl(http_t *http);
static int http_read_ssl(http_t *http, char *buf, int len);
static int http_write_ssl(http_t *http, const char *buf, int len);
http_t *http) /* I - HTTP data */
httpPrintf(http_t *http, /* I - HTTP data */
httpUpdate(http_t *http) /* I - HTTP data */
httpGetLength(http_t *http) /* I - HTTP data */
http_send(http_t *http, /* I - HTTP data */
http_wait(http_t *http, /* I - HTTP data */
http_upgrade(http_t *http) /* I - HTTP data */
http_t myhttp; /* Local copy of HTTP data */
http_setup_ssl(http_t *http) /* I - HTTP data */
http_shutdown_ssl(http_t *http) /* I - HTTP data */
http_read_ssl(http_t *http, /* I - HTTP data */
http_write_ssl(http_t *http, /* I - HTTP data */
httpCheck(http_t *http) /* I - HTTP connection */
httpClearCookie(http_t *http) /* I - Connection */
httpClose(http_t *http) /* I - Connection to close */
http_t * /* O - New HTTP connection */
http_t * /* O - New HTTP connection */
http_t *http; /* New HTTP connection */
http = calloc(sizeof(http_t), 1);
httpEncryption(http_t *http, /* I - HTTP data */
httpReconnect(http_t *http) /* I - HTTP data */
httpGetSubField(http_t *http, /* I - HTTP data */
httpSetField(http_t *http, /* I - HTTP data */
httpDelete(http_t *http, /* I - HTTP data */
httpGet(http_t *http, /* I - HTTP data */
httpHead(http_t *http, /* I - HTTP data */
httpOptions(http_t *http, /* I - HTTP data */
httpPost(http_t *http, /* I - HTTP data */
httpPut(http_t *http, /* I - HTTP data */
httpTrace(http_t *http, /* I - HTTP data */
httpFlush(http_t *http) /* I - HTTP data */
httpRead(http_t *http, /* I - HTTP data */
extern int httpCheck(http_t *http);
extern void httpClose(http_t *http);
extern http_t *httpConnect(const char *host, int port);
extern http_t *httpConnectEncrypt(const char *host, int port,
extern int httpDelete(http_t *http, const char *uri);
extern int httpEncryption(http_t *http, http_encryption_t e);
extern void httpFlush(http_t *http);
extern int httpGet(http_t *http, const char *uri);
extern char *httpGets(char *line, int length, http_t *http);
extern char *httpGetSubField(http_t *http, http_field_t field,
extern int httpHead(http_t *http, const char *uri);
extern int httpOptions(http_t *http, const char *uri);
extern int httpPost(http_t *http, const char *uri);
extern int httpPrintf(http_t *http, const char *format, ...)
extern int httpPut(http_t *http, const char *uri);
extern int httpRead(http_t *http, char *buffer, int length);
extern int httpReconnect(http_t *http);
extern void httpSetField(http_t *http, http_field_t field,
extern int httpTrace(http_t *http, const char *uri);
extern http_status_t httpUpdate(http_t *http);
extern int httpWrite(http_t *http, const char *buffer, int length);
extern int httpGetLength(http_t *http);
extern void httpClearCookie(http_t *http);
extern void httpSetCookie(http_t *http, const char *cookie);
extern int httpWait(http_t *http, int msec);
http_t *http;
http_t *connection;