Begin listening for client requests. The RPC run-time library provides two routines that create sockets. One creates a socket with a well-known port while the other creates a socket with an opaque port number. A single server can support several interfaces. It can also listen on several sockets at a time.
Most servers use one socket for each address family.
A server is not required to use different sockets for different interfaces. The library also includes a routine to unregister an interface that the server no longer exports. Once the server creates sockets, registers its interfaces, and begins listening, it is not required to make additional calls to the initialization routines. However, a server can register and unregister interfaces while it is running. The RPC run-time library also provides two routines that convert between names and socket addresses.