PreviousNext

Telling RPC Runtime What Protocol Sequences to Use

The second thing registering the server does is it obtains a set of endpoints and associates them with the desired protocol sequences. Endpoints are the host's address numbers on which the server can receive incoming calls. This begins the process of actually setting up the information that the server's clients will need in order to bind to it.

The endpoints are usually dynamically generated each time the server starts. However, some applications may use well-known endpoints that are the same every time the server starts. If well-known endpoints are used, they are typically defined in the interface definition with the endpoint attribute.

In the default case, all valid protocol sequences are used when the dce_server_register( ) routine is called. The dce_server_c_no_protseq flag can be passed in the first argument to the routine in cases where dynamic assignment of endpoints is not desired; for example, when well-known endpoints (specified in the IDL definition) are being used.