home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
misc
/
volume23
/
log_tcp
/
part01
/
log_tcp.h
< prev
next >
Wrap
C/C++ Source or Header
|
1991-10-19
|
742b
|
28 lines
/* @(#) log_tcp.h 1.1 91/10/02 23:01:55 */
/*
* Structure filled in by the fromhost() routine. Prerequisites:
* <sys/types.h> and <sys/param.h>.
*/
#ifndef MAXHOSTNAMELEN
#define MAXHOSTNAMELEN 1024
#endif
struct from_host {
int sock_type; /* socket type, see below */
char source[MAXHOSTNAMELEN + 1]; /* host name or address */
};
/* Socket types: 0 means unknown. */
#define FROM_CONNECTED 1 /* connection-oriented */
#define FROM_UNCONNECTED 2 /* non connection-oriented */
/* Global functions. */
extern int fromhost(); /* get/validate remote host info */
extern int hosts_access(); /* access control */
extern void refuse(); /* refuse request */
extern void shell_cmd(); /* execute shell command */