How do I get lat info from C?
John Cothran
john at dekalb.UUCP
Tue Mar 5 13:24:31 AEST 1991
The lat.h include file has several structures defined with lots of goodies.
In particular:
/*
* LAT parameters data structure for LAT_SERVPORT.
*/
struct lat_servport {
u_char lsp_name[17]; /* LAT server name */
u_char lsp_port[17]; /* LAT server port name */
u_char lsp_serv[17]; /* LAT destination */
u_char lsp_flags; /* LAT flags */
#define LSP_DEFAULT_SERVICE 1 /* serve the default service */
#define LSP_HIC 2 /* terminal is for HIC */
#define LSP_APPL_SERVICE 3 /* terminal is for appl service */
dev_t lsp_dev; /* LAT tty number */
};
My question is what functions can I call to get this info? I want to write a
program that will list all users and the server/port they are coming in on.
I assume it can be done since "w" now shows the server name.
Thanks in advance. John.
--
John Cothran - DeKalb College - gatech!dekalb!john - john at dekalb
More information about the Comp.unix.ultrix
mailing list