/* $Id: tcplist.h,v 1.2 1995/08/21 23:33:47 jdd Exp $ */ #ifndef _TCPLIST_H_ #define _TCPLIST_H_ /* linked list of connections: local and remote ports, and remote id */ struct connection { unsigned short remote; /* remote port on query'd machine */ unsigned short local; /* local port on query'ed machine */ char *ident; /* rfc931 ident string, if available */ char *user; /* local user ident string */ struct connection *next; }; /* linked list of hosts, each with a list of connections to it */ struct hostlist { long addr; /* internet address of host */ struct connection *conn; /* linked list of connections */ int identstatus; /* rfc931 identification status? */ int sock; /* rfc931 socket */ struct hostlist *next; }; #endif /* _TCPLIST_H_ */