|
|
 | | From: | Jakob Erber | | Subject: | rpc_binding_copy | | Date: | Sun, 21 Nov 2004 09:39:46 +0100 |
|
|
 | Hello,
I have a question to this dce rpc function:
If a fully reseolved and connected (is_server_listening successfully called) binding handle is copied, does then the destination binding handle also 'resuse' the physical IP connection or is there a new connection etablished at the time of the first rpc?
The other question concerns multiple thread sharing the same (uncopied) binding handle:
Is threadsafeness garanteed by RPC runtime or does the application have to perform synchronisation? Is it in particularly made sure by rpc runtime, that each thread receives the result for the request it made,even if another threads makes a request at the same time with the same binding handle?
I am pretty sure, that the application does not have to care about synchronization in this case, but this part of the DCE documentation made me unsure:
rpc_binding_copy(3rpc) "If you want the changes made to binding information by one thread to affect the binding information used by other threads, your program must share a single binding handle across the threads. In this case the application controls binding handle concurrency."
best regards
Jakob
|
|
|