The server-file-transfer example should also use a TpYtsClient when waiting to receive a file, so it can be discovered by other ytstenut apps and used for testing.
Patch, good to go?
The patch does multiple unrelated things in the same commit:
* make cosmetic changes to variable naming
* start using GOptions
* using it, make some formerly hardcoded variables specified on the command line
* invent new format for addressing the recipient service when sending
* finally, add the TpYtsClient when receiving (what this bug was specifically about)
I'm not saying these changes are bad; on the contrary, they are sensible and superficially seem well executed. However, it's hard to review them all in one (especially because some things are just cosmetics and non-functional refactoring), and also the patch description becomes misleading.
Thus, please split to smaller commits resembling something like the above outline.