Infinity.SessionClass¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
close |
r |
Default signal handler for the |
|
error |
r |
Default signal handler for the |
|
get_xml_user_props |
r |
Virtual function that creates a list of |
|
parent_class |
r |
||
process_xml_run |
r |
Virtual function that is called for every received message while the session is running. Return |
|
process_xml_sync |
r |
Virtual function that is called for every node in the XML document created by to_xml_sync. It is supposed to reconstruct the session content from the XML data. |
|
set_xml_user_props |
r |
Virtual function that writes the passed user properties into a XML node. |
|
synchronization_begin |
r |
Default signal handler for the |
|
synchronization_complete |
r |
Default signal handler for the |
|
synchronization_failed |
r |
Default signal handler for the |
|
synchronization_progress |
r |
Default signal handler for the |
|
to_xml_sync |
r |
Virtual function that saves the session within a XML document. parent is the root node of the document. It should create as much nodes as possible within that root node and not in sub-nodes because these are sent to a client and it is not allowed that other traffic is put in between those nodes. This way, communication through the same connection does not hang just because a large session is synchronized. |
|
user_new |
r |
Virtual function that creates a new user object with the given properties. |
|
validate_user_props |
r |
Virtual function that checks whether the given user properties are valid for a user join. This prevents a user join if there is already a user with the same name. If exclude is not |
Methods¶
None
Details¶
- class Infinity.SessionClass¶
This structure contains the virtual functions and default signal handlers of
Infinity.Session
.