r11819: simplified the async rpc bind code a little.
authorAndrew Tridgell <tridge@samba.org>
Mon, 21 Nov 2005 06:01:02 +0000 (06:01 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:46:33 +0000 (13:46 -0500)
commit11e9b40f13063e036162d6ccf81056ccceaf4598
tree289d1cb96dcd0691df3a5e9553340b1dea816d8b
parent4544226935dd3a57ab74995ec136d59cc4cefe5f
r11819: simplified the async rpc bind code a little.

 - removed the struct dcerpc_request_state as all the state
   information is already available on the dcerpc_pipe structure, so just
   use that

 - added a single dcerpc_recv_data() handler for receiving packets
   from the transport layer. This then does the initial decoding of
   the dcerpc packet, and then looks at the packet type in order to
   work out who to dispatch it to. This should allow in-flight async
   rpc requests to still work while a new bind or alter context is
   happening

 - ensure that if the transport indicates the connection is dead that
   any in-flight bind or alter context requests are given an error

 - removed full_request_private and instead use separate bind_private
   and alter_private pointers

 - added a few comments for some bits I found hard to understand
(This used to be commit 938e372bffbee1982ad8268b83c43514fd2e5633)
source4/librpc/rpc/dcerpc.c
source4/librpc/rpc/dcerpc.h