Advanced Programming in the UNIX® Environment
ptg10805159 Chapter 20 Exercises 787 29% and 59% to the clock time over no locking and that mandatory locking adds about another ...
ptg10805159 This page intentionally left blank ...
ptg10805159 21 Communica ting with a Networ k Pr inter 21.1 Introduction We now develop a program that can communicate with a ne ...
ptg10805159 790 Communicating with a Network Printer Chapter 21 IPP is specified in a series of documents (Requests For Comments ...
ptg10805159 Section 21.2 The Internet Printing Protocol 791 version number operation ID (request)/status code (response) request ...
ptg10805159 792 Communicating with a Network Printer Chapter 21 Attribute Status Description attributes-charset required the cha ...
ptg10805159 Section 21.4 Printer Spooling 793 The following is a sample HTTP header for a print request submitted to the author ...
ptg10805159 794 Communicating with a Network Printer Chapter 21 chapter,our interest is not in these spooling systems per se, bu ...
ptg10805159 Section 21.5 Source Code 795 names arelisted in/etc/hostsor registered with whatever name service we are using, so t ...
ptg10805159 796 Communicating with a Network Printer Chapter 21 We start with theipp.hheader file. 1#ifndef _IPP_H 2#define _IPP ...
ptg10805159 Section 21.5 Source Code 797 40 #define STAT_SRV_INTERN 0x0500 /* unexpected internal error */ 41 #define STAT_SRV_N ...
ptg10805159 798 Communicating with a Network Printer Chapter 21 77 /* 78 * Value Tags. 79 */ 80 #define TAG_UNSUPPORTED 0x10 /* ...
ptg10805159 Section 21.5 Source Code 799 The next file is theprint.hheader. 1#ifndef _PRINT_H 2#define _PRINT_H 3/* 4*Print serv ...
ptg10805159 800 Communicating with a Network Printer Chapter 21 22 #define FILENMSZ 64 23 #define FILEPERM (S_IRUSR|S_IWUSR) 24 ...
ptg10805159 Section 21.5 Source Code 801 48 /* 49 * Structure describing a print request. 50 */ 51 struct printreq { 52 uint32_t ...
ptg10805159 802 Communicating with a Network Printer Chapter 21 The next file we will look at isutil.c,the file containing utili ...
ptg10805159 Section 21.5 Source Code 803 33 /* 34 * Given a keyword, scan the configuration file for a match 35 * and return the ...
ptg10805159 804 Communicating with a Network Printer Chapter 21 64 /* 65 * Return the host name running the print server or NULL ...
ptg10805159 Section 21.5 Source Code 805 95 /* 96 * "Timed" read - timout specifies the # of seconds to wait before 97 * giving ...
ptg10805159 806 Communicating with a Network Printer Chapter 21 120 /* 121 * "Timed" read - timout specifies the number of secon ...
«
37
38
39
40
41
42
43
44
45
46
»
Free download pdf