nssend(FP)
nssend --
name server request structure
Syntax
#include <nserve.h>
Description
The nssend structure contains the information used to
send requests to or receive requests from the name server.
The structure is:
short ns_code; /* request code - see list that follows */
short ns_type; /* type of data, unused for now */
short ns_flag; /* read/write flag */
char *ns_name; /* name of resource */
char *ns_desc; /* description of resource */
char *ns_path; /* local pathname of resource */
struct address *ns_addr; /* address of resource's owner */
char **ns_mach; /* list of client machines */
The request codes for the ns_code
member are as follows:
[If this table is unreadable, a preformatted table follows]
Code
Description
NS_ADV
Advertise a resource
NS_BYMACHINE
Inverse query by owner and type
NS_FINDP
Find which machine is primary
NS_GET
Unused query
NS_IM_NP
Indicate secondary poll
NS_IM_P
Indicate primary poll
NS_INIT
Called to set up name service
NS_IQUERY
General inverse query
NS_MODADV
Modify an advertisement
NS_QUERY
Query by name and type
NS_REL
Relinquish being primary
NS_SENDPASS
Register password with primary
NS_SNDBACK
Null type
NS_UNADV
Unadvertise a resource
NS_VERIFY
Verify validity of password
+-------------+---------------------------------+---+
|Code | Description | |
+-------------+---------------------------------+---+
|NS_ADV | Advertise a resource | |
+-------------+---------------------------------+---+
|NS_BYMACHINE | Inverse query by owner and type | |
+-------------+---------------------------------+---+
|NS_FINDP | Find which machine is primary | |
+-------------+---------------------------------+---+
|NS_GET | Unused query | |
+-------------+---------------------------------+---+
|NS_IM_NP | Indicate secondary poll | |
+-------------+---------------------------------+---+
|NS_IM_P | Indicate primary poll | |
+-------------+---------------------------------+---+
|NS_INIT | Called to set up name service | |
+-------------+---------------------------------+---+
|NS_IQUERY | General inverse query | |
+-------------+---------------------------------+---+
|NS_MODADV | Modify an advertisement | |
+-------------+---------------------------------+---+
|NS_QUERY | Query by name and type | |
+-------------+---------------------------------+---+
|NS_REL | Relinquish being primary | |
+-------------+---------------------------------+---+
|NS_SENDPASS | Register password with primary | |
+-------------+---------------------------------+---+
|NS_SNDBACK | Null type | |
+-------------+---------------------------------+---+
|NS_UNADV | Unadvertise a resource | |
+-------------+---------------------------------+---+
|NS_VERIFY | Verify validity of password | |
+-------------+---------------------------------+---+
© 2005 File Formats for Programming (FP)
SCO OpenServer Release 6.0.0 -- 02 June 2005