home *** CD-ROM | disk | FTP | other *** search
- /* Defines for the ax.25 mailbox facility */
-
- #define NUMMBX 10 /* max number of mailbox sessions */
-
- #define MBXLINE 128 /* max length of line */
- struct mbx {
- int state ; /* mailbox state */
- #define MBX_CMD 1 /* in command mode */
- #define MBX_SUBJ 2 /* waiting for a subject line */
- #define MBX_DATA 3 /* collecting the message */
- int type ; /* type of connection */
- #define MBX_AX25 1 /* ax25 connection */
- #define MBX_NETROM 2 /* net/rom transport connection */
- char name[10] ; /* Name of remote station */
- union {
- struct ax25_cb *ax25_cb ; /* ax.25 link control block */
- struct nr4cb *nr4_cb ; /* net/rom link control block */
- } cb ;
- char *to ; /* To-address in form user or user@host */
- char *tofrom ; /* Optional <from in to-address */
- char *tomsgid ; /* Optional $msgid in to-address */
- FILE *tfile ; /* Temporary file for message */
- char line[MBXLINE+1] ; /* Room for null at end */
- char *lp ; /* line pointer */
- int mbnum ; /* which mailbox session is this? */
- int mblforw ; /* flag: MBL abbreviated forwarding mode */
- char stype ; /* BBS send command type (B,P,T, etc.) */
- } ;
- #define NULLMBX (struct mbx *)0
-
- extern struct mbx *mbox[NUMMBX] ;
- extern int ax25mbox ;
-
- int dombox(int, char **);
- void mbx_incom(struct ax25_cb *, int16);
- void mbx_rx(struct ax25_cb *, int16);
- void mbx_state(struct ax25_cb *, int, int);
- void mbx_nr4incom(struct nr4cb *);
- void mbx_nr4rx(struct nr4cb *, int16);
- void mbx_nr4state(struct nr4cb *, int, int);
-