[jxta-c] Modify PlatformConfig components
I'm wondering what is the best way for creating/modifying PlatformConfig config file for jxta-c.
I see that initially jxta_PlatformConfig_create_default() can be used for creating default configuration. The question is how I can obtain single advertisement, modify some of its parameters and write it back into the config file.
For example get TCP transport advertisement, change interface address and port and write it to the file again.
I see there is some API methods for getting/setting parameters from/to jxta_PA, example jxta_PA_get_GID()/jxta_PA_set_GID. But I don't see any like this for setting TCP Advertisement part.
Another approach I'm considering is:
ad = jxta_TCPTransportAdvertisement_new();
testfile = fopen(argv, "r");
but I'm not sure this will work at all since I don't see how to write the modified parameter back to the orginal file
Hope I'm clear enough :)