02.07.2013 Views

A/UX® Programmer's Reference Sections

A/UX® Programmer's Reference Sections

A/UX® Programmer's Reference Sections

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

nbp(3N) nbp(3N)<br />

3<br />

str The character data for this string.<br />

The at_entity_t structure describes an entity name, which<br />

consists of three NBP entity strings: object, type, and zone.<br />

All NBP routines work with the a t en tit Y t structure. Two<br />

utility routines, nbpyarse_entity, and<br />

nbp_make_entity, are provided to aid in creating<br />

at_entity_t structures from C strings.<br />

The nbpyarse_entity structure constructs an NBP entity<br />

name from a NULL-terminated C string of the form object,<br />

object:type, or object:type@zone. The entity name is placed in the<br />

at _ enti ty _ t structure entity. This routine returns 0 on success.<br />

The nbp make entity structure constructs an NBP entity<br />

name from object: type, and zone strings. The strings are NULLterminated<br />

C strings. The entity name is placed into the<br />

at_entity_t structure entity. Use the object, type, and zone<br />

character strings to construct the entity name. This routine returns<br />

o on success.<br />

The nbp confirm structure sends a confirmation request to the<br />

specified node to see if an entity name is still registered at the<br />

specified AppleTalk internet address.<br />

entity<br />

dest<br />

retry<br />

A pointer to the at en tit Y t structure containing<br />

the entity name. No-wildcards-are allowed in the entity<br />

name strings, but an asterisk (*) for zone is acceptable.<br />

The AppleTalk internet address to confirm. If the<br />

name is still registered on the node but at a different<br />

socket number, the socket number in dest is updated.<br />

A pointer to the structure that specifies the NBP request<br />

retry interval in seconds and the maximum retry<br />

count. If retry is NULL, the system uses the default<br />

values: a I-second interval and eight retries.<br />

On success, nbp confirm returns 1. It returns 0 when the<br />

name is not confiriDed, and -Ion error.<br />

The nbp_lookup structure returns a list of registered nameaddress<br />

pairs via an NBP lookup. The parameters are<br />

entity A pointer to the at entity t structure containing<br />

the entity name to belooked up.<br />

February, 1990<br />

Revision C

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!