The example program needs to know the full JID at login time, but in a real game server system you would have some way to discover the correct addresses, or the addresses would be well known. Since I don't have control over what addresses you will use to run the program, I wrote it so that you had to know them at login.
It sounds like you are implementing discovery, which is great. I left things like that out to keep it as simple as possible.
|