#include <arpa/inet.h>#include <errno.h>#include <stdlib.h>#include <string.h>#include <sys/time.h>#include <sys/types.h>#include <sys/uio.h>#include <atalk/atp.h>#include <atalk/logger.h>#include <atalk/pap.h>#include <netatalk/at.h>#include "file.h"#include "lp.h"#include "session.h"Functions | |
| int | ps (struct papfile *infile, struct papfile *outfile, struct sockaddr_at *sat) |
| int | session (ATP atp, struct sockaddr_at *sat) |
Variables | |
| unsigned char | connid |
| unsigned char | quantum |
| unsigned char | oquantum |
| static char | buf [PAP_MAXQUANTUM][4+PAP_MAXDATA] |
| static struct iovec | niov [PAP_MAXQUANTUM] |
| int ps | ( | struct papfile * | infile, |
| struct papfile * | outfile, | ||
| struct sockaddr_at * | sat ) |
| int session | ( | ATP | atp, |
| struct sockaddr_at * | sat ) |
Accept files until the client closes the connection. Read lines of a file, until the client sends eof, after which we'll send eof also.
|
static |
|
extern |
|
static |
| unsigned char oquantum |
| unsigned char quantum |