mplay_session_mode(move)

move = true or false, move the host or not.

 

This function’s objective is simply change the host, when an online game is hold there’s an host, a PC holding the game, and others simply connects to that PC, what happens if the host wants to finish playing? the game freezes because the host went down. But if it’s for example a chat program you don’t want the game freezing or ending because the host wanted to leave, using this function with a true argument you can change the host to another PC in the session.

 

Example

mplay_session_mode(true);

 

Very easy to use, just type that and the host will move, calling when the player wants to leave is good, for example:

 

Example

mplay_session_mode(true);

mplay_session_end();

 

The example above just changes quickly the host before the host leaves.

 

gml_josea Revision #1