session_open(STRING* session)

Opens a multiplayer session as a server. After the session has been opened, clients can connect to it through the session_connect function.

Returns:

0 if the session could not be established, otherwise nonzero.

Parameters:

session Name of the session, or NULL for using the name of the main script. A8.10 When the name begins with an asterisk '*' character, an unprotected session is started, otherwise a protected session.

Edition

A8  C , A7  P 

Speed:

Slow

Remarks:

Example:

if (session_open("office"))
{
	level_load("office.wmb"); // load level anew
  ...
}

See also:

send_string, session_connect, session_close, connection

► latest version online