Room List
From Club Penguin Protocol
Before the original SmartFoxServer API allows any server communication after login, its room list must be populated. We request this list from the server, and it returns an XML list containing room IDs, the name, max users, if it's a game, etc.
As SmartFoxServer does not allow this to be disabled, you can query Club Penguin servers for a room list (and have a small look at how they handle igloos, etc.)
Example:
* <msg t='sys'><body action='getRmList' r='-1'></body></msg>
<msg t='sys'><body action='rmList' r='0'><rmList><rm id='1' priv='0' temp='0' game='0' ucnt='0' maxu='50' maxs='0'><n><![CDATA[Test]]></n></rm></rmList></body></msg>
Packet Information
getRmList
| Action | getRmList |
|---|---|
| XML Node | - |
rmList
| Action | rmList |
|---|---|
| XML Node | <rmList>...</rmList> |
| List Element | <rm id='1' priv='0' temp='0' game='0' ucnt='0' maxu='50' maxs='0'><n><![CDATA[Test]]></n></rm> |
(ucnt is the total amount of users in the room)