Skip to content

OnAccountLogout

OnAccountLogout

A handler of the event of an account's connection to the server.


C++

virtual void OnAccountLogout(
    std::string ip,                 // IP address
    ConnectionTypes type,           // Type of connection
    const AccountRecord& account    // Pointer to the deleted account record
);

Parameters

  • ip
    [in] The IP address from which the connection is established.

  • account
    [in] Pointer to the object of the account AccountRecord.

  • type
    [in] Type of connection, passed using the ConnectionTypes enumeration.

Info

This method is called by the API to notify that an account has connected to the server.
The method is not used in the Gateway API.