#include <sys/types.h>#include <sys/time.h>#include <sys/uio.h>#include <netatalk/at.h>#include <errno.h>#include <atalk/atp.h>#include <atalk/pap.h>#include <atalk/nbp.h>#include <atalk/util.h>#include <fcntl.h>#include <stdio.h>#include <string.h>#include <stdlib.h>Macros | |
| #define | _PATH_PAPRC ".paprc" |
| #define | IMAGEWRITER "ImageWriter" |
| #define | IMAGEWRITER_LQ "LQ" |
Functions | |
| static void | updatestatus (char *s, int len) |
| static int | send_file (int fd, ATP atp, int lastfile, int is_imagewriter) |
| static void | usage (char *path) |
| static char * | paprc (void) |
| int | main (int ac, char **av) |
Variables | |
| static char * | printer = NULL |
| static char * | status = NULL |
| static int | noeof = 0 |
| static int | waitforprinter = 0 |
| static unsigned char | connid |
| static unsigned char | quantum |
| static unsigned char | oquantum = PAP_MAXQUANTUM |
| static struct sockaddr_at | sat |
| static char | cbuf [8] |
| static struct nbpnve | nn |
| static ATP | satp |
| static char | fbuf [PAP_MAXQUANTUM][4+PAP_MAXDATA] |
| static struct iovec | rfiov [PAP_MAXQUANTUM] |
| static struct iovec | sniov [PAP_MAXQUANTUM] |
| static char | nbuf [PAP_MAXQUANTUM][4+PAP_MAXDATA] |
| static struct iovec | rniov [PAP_MAXQUANTUM] |
| static struct iovec | sfiov [PAP_MAXQUANTUM] |
| static int | debug |
| static int | data = 0 |
| static unsigned char | port |
| static uint16_t | seq = 0 |
| #define _PATH_PAPRC ".paprc" |
| #define IMAGEWRITER "ImageWriter" |
| #define IMAGEWRITER_LQ "LQ" |
| int main | ( | int | ac, |
| char ** | av ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |