★ wanayoo — archive 1999 http://developer.apple.com/samplecode/Sample_Code/Networking/OTCheckNetForNBPName.htmNouvelle recherche | Portail wanayoo
Technical: Sample Code: Networking: OTCheckNetForNBPName
ADC Membership Technical Business Join ADC Sitemap
Search
Networking
ADC Resources
Sample Code

OTCheckNetForNBPName

download (53.5 KB)

Version:

1.0

Date:

Friday, December 3, 1999

Description:

The OTCheckNetForNBPName sample demonstrates the use of the Open Transport to search an AppleTalk network for an NBP entity using multiple simultaneous searches to reduce the lookup time.

This sample demonstrates how to
1. find the number of AppleTalk zones present by dynamically increasing the buffer size until a kOTBufferOverflowErr is no longer returned.
2. Use multiple lookup request and reply structures in order to reduce the amount of time required to search the network.
3. Use asynchronous lookup requests so that other actions can be taken while performing the lookup.
4. Turn on self send globally
5. Register/deregister an entity with OT.




Samples are designed to work with CodeWarrior 2 or later and Universal Interfaces 3.2 unless otherwise noted. Archives can be uncompressed with StuffIt Expander 5.0 or later.
Gray line
 
Site Map | Search Tips | Options | Keywords

Contact Us | Privacy Notice
Copyright © 2000 Apple Computer, Inc. All rights reserved.
1-800-MY-APPLE