Chapter 8:

Registration and Name Resolution (RNR)




C & Winsock: The Kick Start programming tutorials


C & Linux Socket


Program Example Index


C#, VB .NET & C++/CLI Network Programming


Windows Device Driver Development & Program Examples


ReactOS - Windows OS Binary Compatible Open Source Project - C & C++






What do we have in this chapter?

  1. Background

  2. Name Space Models

    Enumerating Name Spaces

  3. Registering a Service

  4. Installing a Service Class

    Service Registration

  5. Service Registration Example

  6. WSALookupServiceBegin() and WSALookupServiceNext() Example

  7. Querying a Service

    Forming a Query

  8. Querying DNS

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

  10. 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 >


Share and email to your beloved friends and foes: