dce/rpc "client" api

Luke Kenneth Casson Leighton lkcl at samba.org
Wed Aug 23 04:09:53 GMT 2000


> fragile. The weeks of effort that JF, Jeremy, Gerald and myself put
> into debugging one small piece of that rpc code showed just how
> un-maintainable hand-generated rpc code is. It took man-months of
> agonising effort after the initial "it works" stage to make that code
> reliable, and even now we have something that we all dread having to
> debug. Looking back on it I think the effort would probably have been
> better spent on writing a spoolss IDL file and working on a IDL-to-C
> generator that could handle it.

believe me when i say that having an IDL compiler would have made the task
only marginally easier.

now that you have been through some of the hard-core pain of doing
hand-generated dce/rpc marshalling / unmarshalling, you are in a better
position to appreciate the wire-format of the various data structures, and
the task of writing and debugging an ms-compatible dce/rpc idl compiler
will be the better for it.

lukes





More information about the samba-technical mailing list