Software: Apache/2.2.16 (Debian). PHP/5.3.3-7+squeeze19 uname -a: Linux mail.tri-specialutilitydistrict.com 2.6.32-5-amd64 #1 SMP Tue May 13 16:34:35 UTC uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/share/cups/doc-root/help/ drwxr-xr-x |
Viewing file: Select action/file-type: HTTP and IPP APIs
Contents
OverviewThe CUPS HTTP and IPP APIs provide low-level access to the HTTP and IPP protocols and CUPS scheduler. They are typically used by monitoring and administration programs to perform specific functions not supported by the high-level CUPS API functions. The HTTP APIs use an opaque structure called
The IPP APIs use two structures for requests (messages sent to the CUPS
scheduler) and responses (messages sent back to your application from the
scheduler). The The second structure is called
ipp_t *request = ippNewRequest(IPP_GET_JOBS); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); Once you have created an IPP request, use the #include <cups/cups.h> ipp_t *get_jobs(void) { ipp_t *request = ippNewRequest(IPP_GET_JOBS); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); return (cupsDoRequest(CUPS_HTTP_DEFAULT, request, "/")); } The ipp_t *response; ipp_attribute_t *attr; attr = ippFindAttribute(response, "printer-state", IPP_TAG_ENUM); You can also walk the list of attributes with a simple ipp_t *response; ipp_attribute_t *attr; for (attr = response->attrs; attr != NULL; attr = attr->next) if (attr->name == NULL) puts("--SEPARATOR--"); else puts(attr->name); The ipp_t *response = get_jobs(); if (response != NULL) { ipp_attribute_t *attr; int job_id = 0; char *job_name = NULL; char *job_originating_user_name = NULL; puts("Job ID Owner Title"); puts("------ ---------------- ---------------------------------"); for (attr = response->attrs; attr != NULL; attr = attr->next) { /* Attributes without names are separators between jobs */ if (attr->name == NULL) { if (job_id > 0 && job_name != NULL && job_originating_user_name != NULL) printf("%5d %-16s %s\n", job_id, job_originating_user_name, job_name); job_id = 0; job_name = NULL; job_originating_user_name = NULL; continue; } else if (!strcmp(attr->name, "job-id") && attr->value_tag == IPP_TAG_INTEGER) job_id = attr->values[0].integer; else if (!strcmp(attr->name, "job-name") && attr->value_tag == IPP_TAG_NAME) job_name = attr->values[0].string.text; else if (!strcmp(attr->name, "job-originating-user-name") && attr->value_tag == IPP_TAG_NAME) job_originating_user_name = attr->values[0].string.text; } if (job_id > 0 && job_name != NULL && job_originating_user_name != NULL) printf("%5d %-16s %s\n", job_id, job_originating_user_name, job_name); } Creating URI StringsTo ensure proper encoding, the
const char *name = "Foo"; char uri[1024]; ipp_t *request; httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, cupsServer(), ippPort(), "/printers/%s", name); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); Sending Requests with FilesThe const char *filename = "/usr/share/cups/data/testprint.ps"; const char *name = "Foo"; char uri[1024]; char resource[1024]; ipp_t *request = ippNewRequest(IPP_PRINT_JOB); ipp_t *response; /* Use httpAssembleURIf for the printer-uri string */ httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, cupsServer(), ippPort(), "/printers/%s", name); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "job-name", NULL, "testprint.ps"); /* Use snprintf for the resource path */ snprintf(resource, sizeof(resource), "/printers/%s", name); response = cupsDoFileRequest(CUPS_HTTP_DEFAULT, request, resource, filename); The char tempfile[1024]; int tempfd; ipp_t *request = ippNewRequest(CUPS_GET_PPD); ipp_t *response; ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "ppd-name", NULL, "laserjet.ppd"); tempfd = cupsTempFd(tempfile, sizeof(tempfile)); response = cupsDoIORequest(CUPS_HTTP_DEFAULT, request, "/", -1, tempfd); The example passes Asynchronous Request ProcessingThe File data is attached to the request using the
char tempfile[1024]; int tempfd; ipp_t *request = ippNewRequest(CUPS_GET_PPD); ipp_t *response; ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "ppd-name", NULL, "laserjet.ppd"); tempfd = cupsTempFd(tempfile, sizeof(tempfile)); if (cupsSendRequest(CUPS_HTTP_DEFAULT, request, "/") == HTTP_CONTINUE) { response = cupsGetResponse(CUPS_HTTP_DEFAULT, "/"); if (response != NULL) { ssize_t bytes; char buffer[8192]; while ((bytes = cupsReadResponseData(CUPS_HTTP_DEFAULT, buffer, sizeof(buffer))) > 0) write(tempfd, buffer, bytes); } } /* Free the request! */ ippDelete(request); The char tempfile[1024]; int tempfd; ipp_t *request = ippNewRequest(CUPS_GET_PPD); ipp_t *response; http_status_t status; ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "ppd-name", NULL, "laserjet.ppd"); tempfd = cupsTempFd(tempfile, sizeof(tempfile)); /* Loop for authentication */ do { status = cupsSendRequest(CUPS_HTTP_DEFAULT, request, "/"); if (status == HTTP_UNAUTHORIZED) { /* Try to authenticate, break out of the loop if that fails */ if (cupsDoAuthentication(CUPS_HTTP_DEFAULT, "POST", "/")) break; } } while (status != HTTP_CONTINUE && status != HTTP_UNAUTHORIZED); if (status == HTTP_CONTINUE) { response = cupsGetResponse(CUPS_HTTP_DEFAULT, "/"); if (response != NULL) { ssize_t bytes; char buffer[8192]; while ((bytes = cupsReadResponseData(CUPS_HTTP_DEFAULT, buffer, sizeof(buffer))) > 0) write(tempfd, buffer, bytes); } } /* Free the request! */ ippDelete(request); FunctionsCUPS 1.1.20/Mac OS X 10.4 cupsDoAuthenticationAuthenticate a request.
int cupsDoAuthentication ( Parameters
Return Value0 on success, -1 on error DiscussionThis function should be called in response to a cupsDoFileRequestDo an IPP request with a file.
ipp_t *cupsDoFileRequest ( Parameters
Return ValueResponse data DiscussionThis function sends the IPP request to the specified server, retrying
and authenticating as necessary. The request is freed with CUPS 1.3/Mac OS X 10.5 cupsDoIORequestDo an IPP request with file descriptors.
ipp_t *cupsDoIORequest ( Parameters
Return ValueResponse data DiscussionThis function sends the IPP request to the specified server, retrying
and authenticating as necessary. The request is freed with ippDelete()
after receiving a valid IPP response. cupsDoRequestDo an IPP request.
ipp_t *cupsDoRequest ( Parameters
Return ValueResponse data DiscussionThis function sends the IPP request to the specified server, retrying and authenticating as necessary. The request is freed with ippDelete() after receiving a valid IPP response. cupsEncodeOptionsEncode printer options into IPP attributes.
void cupsEncodeOptions ( Parameters
DiscussionThis function adds operation, job, and then subscription attributes, in that order. Use the cupsEncodeOptions2() function to add attributes for a single group. CUPS 1.2/Mac OS X 10.5 cupsEncodeOptions2Encode printer options into IPP attributes for a group.
void cupsEncodeOptions2 ( Parameters
DiscussionThis function only adds attributes for a single group. Call this function multiple times for each group, or use cupsEncodeOptions() to add the standard groups. CUPS 1.4/Mac OS X 10.6 cupsGetDevicesGet available printer devices.
ipp_status_t cupsGetDevices ( Parameters
Return ValueRequest status - DiscussionThis function sends a CUPS-Get-Devices request and streams the discovered devices to the specified callback function. The "timeout" parameter controls how long the request lasts, while the "include_schemes" and "exclude_schemes" parameters provide comma-delimited lists of backends to include or omit from the request respectively. CUPS 1.1.20/Mac OS X 10.4 cupsGetFdGet a file from the server.
http_status_t cupsGetFd ( Parameters
Return ValueHTTP status DiscussionThis function returns CUPS 1.1.20/Mac OS X 10.4 cupsGetFileGet a file from the server.
http_status_t cupsGetFile ( Parameters
Return ValueHTTP status DiscussionThis function returns CUPS 1.4/Mac OS X 10.6 cupsGetResponseGet a response to an IPP request.
ipp_t *cupsGetResponse ( Parameters
Return ValueResponse or DiscussionUse this function to get the response for an IPP request sent using cupsSendDocument() or cupsSendRequest(). For requests that return additional data, use httpRead() after getting a successful response. CUPS 1.1.20/Mac OS X 10.4 cupsPutFdPut a file on the server.
http_status_t cupsPutFd ( Parameters
Return ValueHTTP status DiscussionThis function returns CUPS 1.1.20/Mac OS X 10.4 cupsPutFilePut a file on the server.
http_status_t cupsPutFile ( Parameters
Return ValueHTTP status DiscussionThis function returns CUPS 1.4/Mac OS X 10.6 cupsReadResponseDataRead additional data after the IPP response.
ssize_t cupsReadResponseData ( Parameters
Return ValueBytes read, 0 on EOF, -1 on error DiscussionThis function is used after cupsGetResponse() to read the PPD or document files for CUPS_GET_PPD and CUPS_GET_DOCUMENT requests, respectively. CUPS 1.4/Mac OS X 10.6 cupsSendRequestSend an IPP request.
http_status_t cupsSendRequest ( Parameters
Return ValueInitial HTTP status DiscussionUse httpWrite() to write any additional data (document, PPD file, etc.)
for the request, cupsGetResponse() to get the IPP response, and httpRead()
to read any additional data following the response. Only one request can be
sent/queued at a time. CUPS 1.4/Mac OS X 10.6 cupsWriteRequestDataWrite additional data after an IPP request.
http_status_t cupsWriteRequestData ( Parameters
Return Value
DiscussionThis function is used after CUPS 1.2/Mac OS X 10.5 httpAddrAnyCheck for the "any" address.
int httpAddrAny ( Parameters
Return Value1 if "any", 0 otherwise CUPS 1.2/Mac OS X 10.5 httpAddrEqualCompare two addresses.
int httpAddrEqual ( Parameters
Return Value1 if equal, 0 if not CUPS 1.2/Mac OS X 10.5 httpAddrLengthReturn the length of the address in bytes.
int httpAddrLength ( Parameters
Return ValueLength in bytes CUPS 1.2/Mac OS X 10.5 httpAddrLocalhostCheck for the local loopback address.
int httpAddrLocalhost ( Parameters
Return Value1 if local host, 0 otherwise CUPS 1.2/Mac OS X 10.5 httpAddrLookupLookup the hostname associated with the address.
char *httpAddrLookup ( Parameters
Return ValueHost name CUPS 1.2/Mac OS X 10.5 httpAddrStringConvert an address to a numeric string.
char *httpAddrString ( Parameters
Return ValueNumeric address string CUPS 1.2/Mac OS X 10.5 httpAssembleURIAssemble a uniform resource identifier from its components.
http_uri_status_t httpAssembleURI ( Parameters
Return ValueURI status DiscussionThis function escapes reserved characters in the URI depending on the value of the "encoding" argument. You should use this function in place of traditional string functions whenever you need to create a URI string. CUPS 1.2/Mac OS X 10.5 httpAssembleURIfAssemble a uniform resource identifier from its components with a formatted resource.
http_uri_status_t httpAssembleURIf ( Parameters
Return ValueURI status DiscussionThis function creates a formatted version of the resource string argument "resourcef" and escapes reserved characters in the URI depending on the value of the "encoding" argument. You should use this function in place of traditional string functions whenever you need to create a URI string. httpBlockingSet blocking/non-blocking behavior on a connection.
void httpBlocking ( Parameters
httpCheckCheck to see if there is a pending response from the server.
int httpCheck ( Parameters
Return Value0 = no data, 1 = data available CUPS 1.1.19/Mac OS X 10.3 httpClearCookieClear the cookie value(s).
void httpClearCookie ( Parameters
httpClearFieldsClear HTTP request fields.
void httpClearFields ( Parameters
httpCloseClose an HTTP connection.
void httpClose ( Parameters
DEPRECATED httpConnectConnect to a HTTP server.
http_t *httpConnect ( Parameters
Return ValueNew HTTP connection DiscussionThis function is deprecated - use httpConnectEncryptConnect to a HTTP server using encryption.
http_t *httpConnectEncrypt ( Parameters
Return ValueNew HTTP connection DEPRECATED httpDecode64Base64-decode a string.
char *httpDecode64 ( Parameters
Return ValueDecoded string DiscussionThis function is deprecated. Use the httpDecode64_2() function instead which provides buffer length arguments. CUPS 1.1.21/Mac OS X 10.4 httpDecode64_2Base64-decode a string.
char *httpDecode64_2 ( Parameters
Return ValueDecoded string httpDeleteSend a DELETE request to the server.
int httpDelete ( Parameters
Return ValueStatus of call (0 = success) DEPRECATED httpEncode64Base64-encode a string.
char *httpEncode64 ( Parameters
Return ValueEncoded string DiscussionThis function is deprecated. Use the httpEncode64_2() function instead which provides buffer length arguments. CUPS 1.1.21/Mac OS X 10.4 httpEncode64_2Base64-encode a string.
char *httpEncode64_2 ( Parameters
Return ValueEncoded string httpEncryptionSet the required encryption on the link.
int httpEncryption ( Parameters
Return Value-1 on error, 0 on success httpErrorGet the last error on a connection.
int httpError ( Parameters
Return ValueError code (errno) value httpFlushFlush data from a HTTP connection.
void httpFlush ( Parameters
CUPS 1.2/Mac OS X 10.5 httpFlushWriteFlush data in write buffer.
int httpFlushWrite ( Parameters
Return ValueBytes written or -1 on error httpGetSend a GET request to the server.
int httpGet ( Parameters
Return ValueStatus of call (0 = success) CUPS 1.3/Mac OS X 10.5 httpGetAuthStringGet the current authorization string.
char *httpGetAuthString ( Parameters
Return ValueAuthorization string DiscussionThe authorization string is set by cupsDoAuthentication() and httpSetAuthString(). Use httpGetAuthString() to retrieve the string to use with httpSetField() for the HTTP_FIELD_AUTHORIZATION value. CUPS 1.2/Mac OS X 10.5 httpGetBlockingGet the blocking/non-block state of a connection.
int httpGetBlocking ( Parameters
Return Value1 if blocking, 0 if non-blocking CUPS 1.1.19/Mac OS X 10.3 httpGetCookieGet any cookie data from the response.
const char *httpGetCookie ( Parameters
Return ValueCookie data or NULL DEPRECATED httpGetDateStringGet a formatted date/time string from a time value.
const char *httpGetDateString ( Parameters
Return ValueDate/time string CUPS 1.2/Mac OS X 10.5 httpGetDateString2Get a formatted date/time string from a time value.
const char *httpGetDateString2 ( Parameters
Return ValueDate/time string httpGetDateTimeGet a time value from a formatted date/time string.
time_t httpGetDateTime ( Parameters
Return ValueUNIX time CUPS 1.2/Mac OS X 10.5 httpGetFdGet the file descriptor associated with a connection.
int httpGetFd ( Parameters
Return ValueFile descriptor or -1 if none httpGetFieldGet a field value from a request/response.
const char *httpGetField ( Parameters
Return ValueField value DEPRECATED httpGetHostByNameLookup a hostname or IPv4 address, and return address records for the specified name.
struct hostent *httpGetHostByName ( Parameters
Return ValueHost entry CUPS 1.2/Mac OS X 10.5 httpGetHostnameGet the FQDN for the connection or local system.
const char *httpGetHostname ( Parameters
Return ValueFQDN for connection or system DiscussionWhen "http" points to a connected socket, return the hostname or address that was used in the call to httpConnect() or httpConnectEncrypt(). Otherwise, return the FQDN for the local system using both gethostname() and gethostbyname() to get the local hostname with domain. DEPRECATED httpGetLengthGet the amount of data remaining from the content-length or transfer-encoding fields.
int httpGetLength ( Parameters
Return ValueContent length DiscussionThis function is deprecated and will not return lengths larger than 2^31 - 1; use httpGetLength2() instead. CUPS 1.2/Mac OS X 10.5 httpGetLength2Get the amount of data remaining from the content-length or transfer-encoding fields.
off_t httpGetLength2 ( Parameters
Return ValueContent length DiscussionThis function returns the complete content length, even for content larger than 2^31 - 1. CUPS 1.2/Mac OS X 10.5 httpGetStatusGet the status of the last HTTP request.
http_status_t httpGetStatus ( Parameters
Return ValueHTTP status DEPRECATED httpGetSubFieldGet a sub-field value.
char *httpGetSubField ( Parameters
Return ValueValue or NULL CUPS 1.2/Mac OS X 10.5 httpGetSubField2Get a sub-field value.
char *httpGetSubField2 ( Parameters
Return ValueValue or NULL httpGetsGet a line of text from a HTTP connection.
char *httpGets ( Parameters
Return ValueLine or NULL httpHeadSend a HEAD request to the server.
int httpHead ( Parameters
Return ValueStatus of call (0 = success) httpInitializeInitialize the HTTP interface library and set the default HTTP proxy (if any). void httpInitialize (void); httpMD5Compute the MD5 sum of the username:group:password.
char *httpMD5 ( Parameters
Return ValueMD5 sum httpMD5FinalCombine the MD5 sum of the username, group, and password with the server-supplied nonce value, method, and request-uri.
char *httpMD5Final ( Parameters
Return ValueNew sum httpMD5StringConvert an MD5 sum to a character string.
char *httpMD5String ( Parameters
Return ValueMD5 sum in hex httpOptionsSend an OPTIONS request to the server.
int httpOptions ( Parameters
Return ValueStatus of call (0 = success) httpPostSend a POST request to the server.
int httpPost ( Parameters
Return ValueStatus of call (0 = success) httpPutSend a PUT request to the server.
int httpPut ( Parameters
Return ValueStatus of call (0 = success) DEPRECATED httpReadRead data from a HTTP connection.
int httpRead ( Parameters
Return ValueNumber of bytes read DiscussionThis function is deprecated. Use the httpRead2() function which can read more than 2GB of data. CUPS 1.2/Mac OS X 10.5 httpRead2Read data from a HTTP connection.
ssize_t httpRead2 ( Parameters
Return ValueNumber of bytes read httpReconnectReconnect to a HTTP server.
int httpReconnect ( Parameters
Return Value0 on success, non-zero on failure DEPRECATED httpSeparateSeparate a Universal Resource Identifier into its components.
void httpSeparate ( Parameters
DiscussionThis function is deprecated; use the httpSeparateURI() function instead. CUPS 1.1.21/Mac OS X 10.4 httpSeparate2Separate a Universal Resource Identifier into its components.
void httpSeparate2 ( Parameters
DiscussionThis function is deprecated; use the httpSeparateURI() function instead. CUPS 1.2/Mac OS X 10.5 httpSeparateURISeparate a Universal Resource Identifier into its components.
http_uri_status_t httpSeparateURI ( Parameters
Return ValueResult of separation CUPS 1.3/Mac OS X 10.5 httpSetAuthStringSet the current authorization string.
void httpSetAuthString ( Parameters
DiscussionThis function just stores a copy of the current authorization string in the HTTP connection object. You must still call httpSetField() to set HTTP_FIELD_AUTHORIZATION prior to issuing a HTTP request using httpGet(), httpHead(), httpOptions(), httpPost, or httpPut(). CUPS 1.1.19/Mac OS X 10.3 httpSetCookieSet the cookie value(s).
void httpSetCookie ( Parameters
CUPS 1.2/Mac OS X 10.5 httpSetExpectSet the Expect: header in a request.
void httpSetExpect ( Parameters
DiscussionCurrently only HTTP_CONTINUE is supported for the "expect" argument. httpSetFieldSet the value of an HTTP header.
void httpSetField ( Parameters
CUPS 1.2/Mac OS X 10.5 httpSetLengthSet the content-length and content-encoding.
void httpSetLength ( Parameters
httpStatusReturn a short string describing a HTTP status code.
const char *httpStatus ( Parameters
Return ValueLocalized status string DiscussionThe returned string is localized to the current POSIX locale and is based on the status strings defined in RFC 2616. httpTraceSend an TRACE request to the server.
int httpTrace ( Parameters
Return ValueStatus of call (0 = success) httpUpdateUpdate the current HTTP state for incoming data.
http_status_t httpUpdate ( Parameters
Return ValueHTTP status CUPS 1.1.19/Mac OS X 10.3 httpWaitWait for data available on a connection.
int httpWait ( Parameters
Return Value1 if data is available, 0 otherwise DEPRECATED httpWriteWrite data to a HTTP connection.
int httpWrite ( Parameters
Return ValueNumber of bytes written DiscussionThis function is deprecated. Use the httpWrite2() function which can write more than 2GB of data. CUPS 1.2/Mac OS X 10.5 httpWrite2Write data to a HTTP connection.
ssize_t httpWrite2 ( Parameters
Return ValueNumber of bytes written ippAddBooleanAdd a boolean attribute to an IPP message.
ipp_attribute_t *ippAddBoolean ( Parameters
Return ValueNew attribute ippAddBooleansAdd an array of boolean values.
ipp_attribute_t *ippAddBooleans ( Parameters
Return ValueNew attribute CUPS 1.1.19/Mac OS X 10.3 ippAddCollectionAdd a collection value.
ipp_attribute_t *ippAddCollection ( Parameters
Return ValueNew attribute CUPS 1.1.19/Mac OS X 10.3 ippAddCollectionsAdd an array of collection values.
ipp_attribute_t *ippAddCollections ( Parameters
Return ValueNew attribute ippAddDateAdd a date attribute to an IPP message.
ipp_attribute_t *ippAddDate ( Parameters
Return ValueNew attribute ippAddIntegerAdd a integer attribute to an IPP message.
ipp_attribute_t *ippAddInteger ( Parameters
Return ValueNew attribute ippAddIntegersAdd an array of integer values.
ipp_attribute_t *ippAddIntegers ( Parameters
Return ValueNew attribute CUPS 1.2/Mac OS X 10.5 ippAddOctetStringAdd an octetString value to an IPP message.
ipp_attribute_t *ippAddOctetString ( Parameters
Return ValueNew attribute ippAddRangeAdd a range of values to an IPP message.
ipp_attribute_t *ippAddRange ( Parameters
Return ValueNew attribute ippAddRangesAdd ranges of values to an IPP message.
ipp_attribute_t *ippAddRanges ( Parameters
Return ValueNew attribute ippAddResolutionAdd a resolution value to an IPP message.
ipp_attribute_t *ippAddResolution ( Parameters
Return ValueNew attribute ippAddResolutionsAdd resolution values to an IPP message.
ipp_attribute_t *ippAddResolutions ( Parameters
Return ValueNew attribute ippAddSeparatorAdd a group separator to an IPP message.
ipp_attribute_t *ippAddSeparator ( Parameters
Return ValueNew attribute ippAddStringAdd a language-encoded string to an IPP message.
ipp_attribute_t *ippAddString ( Parameters
Return ValueNew attribute ippAddStringsAdd language-encoded strings to an IPP message.
ipp_attribute_t *ippAddStrings ( Parameters
Return ValueNew attribute ippDateToTimeConvert from RFC 1903 Date/Time format to UNIX time in seconds.
time_t ippDateToTime ( Parameters
Return ValueUNIX time value ippDeleteDelete an IPP message.
void ippDelete ( Parameters
CUPS 1.1.19/Mac OS X 10.3 ippDeleteAttributeDelete a single attribute in an IPP message.
void ippDeleteAttribute ( Parameters
ippErrorStringReturn a name for the given status code.
const char *ippErrorString ( Parameters
Return ValueText string CUPS 1.2/Mac OS X 10.5 ippErrorValueReturn a status code for the given name.
ipp_status_t ippErrorValue ( Parameters
Return ValueIPP status code ippFindAttributeFind a named attribute in a request...
ipp_attribute_t *ippFindAttribute ( Parameters
Return ValueMatching attribute ippFindNextAttributeFind the next named attribute in a request...
ipp_attribute_t *ippFindNextAttribute ( Parameters
Return ValueMatching attribute ippLengthCompute the length of an IPP message.
size_t ippLength ( Parameters
Return ValueSize of IPP message ippNewAllocate a new IPP message. ipp_t *ippNew (void); Return ValueNew IPP message CUPS 1.2/Mac OS X 10.5 ippNewRequestAllocate a new IPP request message.
ipp_t *ippNewRequest ( Parameters
Return ValueIPP request message DiscussionThe new request message is initialized with the attributes-charset and attributes-natural-language attributes added. The attributes-natural-language value is derived from the current locale. CUPS 1.2/Mac OS X 10.5 ippOpStringReturn a name for the given operation id.
const char *ippOpString ( Parameters
Return ValueName CUPS 1.2/Mac OS X 10.5 ippOpValueReturn an operation id for the given name.
ipp_op_t ippOpValue ( Parameters
Return ValueOperation ID ippPortReturn the default IPP port number. int ippPort (void); Return ValuePort number ippReadRead data for an IPP message from a HTTP connection.
ipp_state_t ippRead ( Parameters
Return ValueCurrent state CUPS 1.1.19/Mac OS X 10.3 ippReadFileRead data for an IPP message from a file.
ipp_state_t ippReadFile ( Parameters
Return ValueCurrent state CUPS 1.2/Mac OS X 10.5 ippReadIORead data for an IPP message.
ipp_state_t ippReadIO ( Parameters
Return ValueCurrent state ippSetPortSet the default port number.
void ippSetPort ( Parameters
CUPS 1.4/Mac OS X 10.6 ippTagStringReturn the tag name corresponding to a tag value.
const char *ippTagString ( Parameters
Return ValueTag name DiscussionThe returned names are defined in RFC 2911 and 3382. CUPS 1.4/Mac OS X 10.6 ippTagValueReturn the tag value corresponding to a tag name.
ipp_tag_t ippTagValue ( Parameters
Return ValueTag value DiscussionThe tag names are defined in RFC 2911 and 3382. ippTimeToDateConvert from UNIX time to RFC 1903 format.
const ipp_uchar_t *ippTimeToDate ( Parameters
Return ValueRFC-1903 date/time data ippWriteWrite data for an IPP message to a HTTP connection.
ipp_state_t ippWrite ( Parameters
Return ValueCurrent state CUPS 1.1.19/Mac OS X 10.3 ippWriteFileWrite data for an IPP message to a file.
ipp_state_t ippWriteFile ( Parameters
Return ValueCurrent state CUPS 1.2/Mac OS X 10.5 ippWriteIOWrite data for an IPP message.
ipp_state_t ippWriteIO ( Parameters
Return ValueCurrent state Data TypesCUPS 1.2/Mac OS X 10.5 http_addr_tSocket address union, which makes using IPv6 and other address types easier and more portable. typedef union _http_addr_u / http_addr_t; CUPS 1.2/Mac OS X 10.5 http_addrlist_tSocket address list, which is used to enumerate all of the addresses that are associated with a hostname. typedef struct http_addrlist_s / http_addrlist_t; http_auth_tHTTP authentication types typedef enum http_auth_e http_auth_t; http_encoding_tHTTP transfer encoding values typedef enum http_encoding_e http_encoding_t; http_encryption_tHTTP encryption values typedef enum http_encryption_e http_encryption_t; http_field_tHTTP field names typedef enum http_field_e http_field_t; http_keepalive_tHTTP keep-alive values typedef enum http_keepalive_e http_keepalive_t; http_state_tHTTP state values; states are server-oriented... typedef enum http_state_e / http_state_t; http_status_tHTTP status codes typedef enum http_status_e http_status_t; http_tHTTP connection type typedef struct _http_s http_t; http_uri_coding_tURI en/decode flags typedef enum http_uri_coding_e http_uri_coding_t; CUPS1.2 http_uri_status_tURI separation status typedef enum http_uri_status_e http_uri_status_t; http_version_tHTTP version numbers typedef enum http_version_e http_version_t; ipp_attribute_tAttribute typedef struct ipp_attribute_s ipp_attribute_t; ipp_finish_tFinishings typedef enum ipp_finish_e ipp_finish_t; CUPS 1.2/Mac OS X 10.5 ipp_iocb_tIPP IO Callback Function typedef ssize_t (*ipp_iocb_t)(void *, ipp_uchar_t *, size_t); ipp_jstate_tJob states typedef enum ipp_jstate_e ipp_jstate_t; ipp_op_tIPP operations typedef enum ipp_op_e ipp_op_t; ipp_orient_tOrientation values typedef enum ipp_orient_e ipp_orient_t; ipp_pstate_tPrinter states typedef enum ipp_pstate_e ipp_pstate_t; ipp_quality_tQualities typedef enum ipp_quality_e ipp_quality_t; ipp_request_tRequest Header typedef union ipp_request_u ipp_request_t; ipp_res_tResolution units typedef enum ipp_res_e ipp_res_t; ipp_state_tIPP states typedef enum ipp_state_e ipp_state_t; ipp_tAttribute Value typedef struct ipp_s ipp_t; ipp_uchar_tIPP status codes typedef typedef unsigned char ipp_uchar_t; ipp_tag_tFormat tags for attributes typedef enum ipp_tag_e ipp_tag_t; ipp_value_tAttribute Value typedef union ipp_value_u ipp_value_t; StructuresCUPS 1.2/Mac OS X 10.5 http_addrlist_sSocket address list, which is used to enumerate all of the addresses that are associated with a hostname. struct http_addrlist_s { Members
ipp_attribute_sAttribute struct ipp_attribute_s { Members
ipp_sIPP Request/Response/Notification struct ipp_s { Members
Unionsipp_request_uRequest Header union ipp_request_u { Membersipp_value_uAttribute Value union ipp_value_u { Members
Constantshttp_auth_eHTTP authentication types Constants
http_encoding_eHTTP transfer encoding values Constants
http_encryption_eHTTP encryption values Constants
http_field_eHTTP field names Constants
http_keepalive_eHTTP keep-alive values Constants
http_state_eHTTP state values; states are server-oriented... Constants
http_status_eHTTP status codes Constants
http_uri_coding_eURI en/decode flags Constants
CUPS1.2 http_uri_status_eURI separation status Constants
http_version_eHTTP version numbers Constants
ipp_finish_eFinishings Constants
ipp_jstate_eJob states Constants
ipp_op_eIPP operations Constants
ipp_orient_eOrientation values Constants
ipp_pstate_ePrinter states Constants
ipp_quality_eQualities Constants
ipp_res_eResolution units Constants
ipp_state_eIPP states Constants
ipp_status_eIPP status codes Constants
ipp_tag_eFormat tags for attributes Constants
|
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0193 ]-- |