Chapter 8

Registration and Name Resolution (RNR)






What do we have in this chapter?


  1. Background

  2. Name Space Models

  3. Enumerating Name Spaces

  4. Registering a Service

  5. Installing a Service Class

  6. Service Registration

  7. Service Registration Example

  8. WSALookupServiceBegin() and WSALookupServiceNext() Example

  9. Querying a Service

  10. Forming a Query

  11. Querying DNS

  12. Another Example: HOSTENT, gethostbyname() and gethostbyaddr()

  13. Querying Network Location Awareness (NLA)




The registration and name resolution (RNR) functions might seem overly complicated, but they offer great flexibility in writing client/server applications. The real limitation of name registration lies with the name space. It's rather amazing that even with the popularity of TCP/IP, the only name resolution method available is been DNS, which is not very flexible. With the Windows 2000, Windows XP, and Windows NT domain spaces, a persistent, protocol-independent method of name resolution is available, offering the necessary flexibility to write robust applications. In addition, other name spaces (such as SAP) are available for IPX/SPX-based applications, offering many of the same capabilities of the Windows NT domain space (except for protocol independence).







Custom Search

< Chap 7: Winsock Socket Options & IOCTLs | Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7 | Chap 9: Multicasting >