HOWTO: Register Multiple RPC Server Interfaces

ID: Q129975

The information in this article applies to:

SUMMARY

When registering multiple server interfaces from multiple threads or from a single thread under the same process, the RpcServerListen() function should be called only once.

An application process may register two completely separate Remote Procedure Call (RPC) server interfaces from two separate threads or from a single thread. However, when doing so, the RpcServerListen() function should be called only once from any thread.

RPC APIs are called on a per process basis. From the perspective of RPC run times, a process can register multiple interfaces using one or more protocol sequences, but must call the RpcServerListen() function only once from any one thread. Calling the RpcServerListen() function more than once results in the run time generating an exception called RPC_S_ALREADY_LISTENING.

Additional query words:

Keywords          : kbnetwork kbAPI kbNTOS350 kbRPC kbSDKPlatform kbGrpNet 
Issue type        : kbhowto

Last Reviewed: July 31, 1998