Dynamic C 10 includes a "Remote Program Update" feature for the following boards: RCM4200, RCM43xx, RCM44xxW, RCM54xxW, RCM56xxW, RCM5750, BL4S1xx, RCM66xxW and RCM67xx.
Consider targeting one of those products instead of using the RCM4000, and then look at the samples in Samples/RemoteProgramUpdate for examples. I'd recommend the RCM4200, one of the RCM43xx boards, or one of the Rabbit 6000-based boards.