38#define ASP_MAXPACKETS 8
39#define ASP_CMDMAXSIZ (ASP_CMDSIZ + ASP_HDRSIZ)
40#define ASP_DATASIZ (ASP_CMDSIZ*ASP_MAXPACKETS)
41#define ASP_DATAMAXSIZ ((ASP_CMDSIZ + ASP_HDRSIZ)*ASP_MAXPACKETS)
44#define ASP_ERR_READ (-1)
45#define ASP_ERR_SEQ (-2)
46#define ASP_ERR_SID (-3)
47#define ASP_NOREQUEST (-4)
61#define asp_status asp_u.asu_status.as_status
62#define asp_slen asp_u.asu_status.as_slen
63#define asp_seq asp_u.asu_seq
79#define ASPFUNC_CLOSE 1
83#define ASPFUNC_TICKLE 5
84#define ASPFUNC_WRITE 6
85#define ASPFUNC_WRTCONT 7
88#define ASPERR_OK 0x0000
89#define ASPERR_BADVERS 0xfbd6
90#define ASPERR_BUFSMALL 0xfbd5
91#define ASPERR_NOSESS 0xfbd4
92#define ASPERR_NOSERV 0xfbd3
93#define ASPERR_PARM 0xfbd2
94#define ASPERR_SERVBUSY 0xfbd1
95#define ASPERR_SESSCLOS 0xfbd0
96#define ASPERR_SIZERR 0xfbcf
97#define ASPERR_TOOMANY 0xfbce
98#define ASPERR_NOACK 0xfbcd
109#define asp_wrtreply(a,b) asp_cmdreply((a), (b))
uint16_t AFPUserBytes
Definition afp.h:30
void asp_stop_tickle(void)
Definition asp_getsess.c:90
ASP asp_getsession(ASP, server_child_t *, const int, afp_child_t **)
This call handles open, tickle, and getstatus requests.
Definition asp_getsess.c:106
int asp_attention(ASP, AFPUserBytes)
Definition asp_attn.c:24
void asp_kill(int)
Definition asp_getsess.c:83
int asp_shutdown(ASP)
Definition asp_shutdown.c:18
int asp_close(ASP)
Definition asp_close.c:39
int asp_wrtcont(ASP, char *, size_t *)
Definition asp_write.c:36
#define ASP_DATAMAXSIZ
Definition asp.h:41
#define ASP_CMDMAXSIZ
Definition asp.h:39
void asp_setstatus(ASP, char *, const int)
Definition asp_init.c:67
int asp_getrequest(ASP)
Definition asp_getreq.c:48
ASP asp_init(ATP)
Definition asp_init.c:39
int asp_cmdreply(ASP, int)
Definition asp_cmdreply.c:36
int asp_tickle(ASP, const uint8_t, struct sockaddr_at *)
Definition asp_tickle.c:20
data structures and utility functions for child processes
struct sockaddr_at asp_sat
Definition asp.h:51
uint16_t asu_seq
Definition asp.h:59
int asp_hint_fd
Definition asp.h:71
char * as_status
Definition asp.h:56
char cmdbuf[ASP_CMDMAXSIZ]
Definition asp.h:66
int asp_cnx_cnt
Definition asp.h:72
ATP asp_atp
Definition asp.h:50
size_t cmdlen
Definition asp.h:68
size_t datalen
Definition asp.h:68
char inited
Definition asp.h:65
int as_slen
Definition asp.h:57
char data[ASP_DATAMAXSIZ]
Definition asp.h:67
int asp_flags
Definition asp.h:64
int asp_ipc_fd
Definition asp.h:70
off_t read_count
Definition asp.h:69
char child
Definition asp.h:65
off_t write_count
Definition asp.h:69
uint8_t asp_wss
Definition asp.h:52
int asp_cnx_max
Definition asp.h:73
char * commands
Definition asp.h:65
uint8_t asp_sid
Definition asp.h:53
Definition server_child.h:26
Definition server_child.h:47