|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T r
Length: 1474 (0x5c2)
Types: TextFile
Names: »route.h«
└─⟦9ae75bfbd⟧ Bits:30007242 EUUGD3: Starter Kit
└─⟦2fafebccf⟧ »EurOpenD3/mail/smail3.1.19.tar.Z«
└─⟦bcd2bc73f⟧
└─⟦this⟧ »src/route.h«
/* @(#)route.h 3.7 8/18/88 01:53:44 */
/*
* Copyright (C) 1987, 1988 Ronald S. Karr and Landon Curt Noll
*
* See the file COPYING, distributed with smail, for restriction
* and warranty information.
*/
#ifndef ROUTE_H
#define ROUTE_H
/*
* route.h:
* interface file for route.c. Also, types and macros for
* use by router drivers.
*/
/* structure of a router, as read from the configuration file */
struct router {
char *name; /* name of router */
char *driver; /* name of driver */
struct router *succ; /* next router in the list */
long flags; /* boolean flag values */
struct method *method; /* table of host/tport associations */
char *default_transport; /* name of default transport */
char *private; /* private data storage */
};
/* method - table associating hosts and transports */
struct method {
char *host; /* host name */
char *transport; /* transport name */
};
/* compiled in route drivers */
struct route_driver {
char *name; /* name of route driver */
void (*cache)(); /* function to cache routing info */
void (*driver)(); /* function to perform routing */
void (*verify)(); /* function to perform verification */
void (*finish)(); /* function to free resources */
char *(*builder)(); /* fun to read from router file */
};
/* values for router.flags field */
#define USE_ALWAYS 0x0001 /* if match, don't use next router */
#endif /* ROUTE_H */