PreviousNext

Writing the Stub Support Routines

When you use the cs_char attribute to define an international character data type, you must provide stub support routines that check the buffer storage requirements for character data to be converted and stub support routines that perform the conversions between the local and network code sets. And, if you use the cs_tag_rtn attribute, you must provide the routine that sets the code set tag parameters for the operations in the application that transfer international characters.

DCE RPC provides several buffer-sizing routines and one tag-setting routine. You can use the DCE RPC routines, or you can develop your own customized buffer-sizing and tag-setting routines; the choice depends upon your application's requirements. The next topics describe these types of stub support routines in more detail.

More:

Buffer Sizing Routines

Code Set Conversion Routines

Tag-Setting Routine