SmartFoxServer 2X C++ API
|
Join one of the Zones in the Server. More...
#include <LoginRequest.h>
Inherits Sfs2X::Requests::BaseRequest.
Public Member Functions | |
LoginRequest (string userName, string password, string zoneName, boost::shared_ptr< ISFSObject > parameters) | |
Constructor More... | |
LoginRequest (string userName, string password, string zoneName) | |
LoginRequest(string, string, string, boost::shared_ptr<ISFSObject> More... | |
LoginRequest (string userName, string password) | |
LoginRequest(string, string, string, boost::shared_ptr<ISFSObject>) More... | |
LoginRequest (string userName) | |
LoginRequest(string, string, string, boost::shared_ptr<ISFSObject>) More... | |
Join one of the Zones in the Server.
Each Zone represents a different application running independently
In order to join a Zone a user name and password are usually required.
If the Zone allows guest users, user name and password are not needed and a guest name will be created on the server side
If the Zone uses a server side extension to handle the login, you can also send a custom SFSObject with any extra parameters.
Sfs2X::Requests::LoginRequest::LoginRequest | ( | string | userName, |
string | password, | ||
string | zoneName, | ||
boost::shared_ptr< ISFSObject > | parameters | ||
) |
Constructor
userName | the user name (optional) |
password | the password (optional) |
zoneName | the name of an existing Zone in the server (case sensitive, 'SimpleChat' != 'simplechat'). If no Zone is specified the SmartFox.Config.Zone parameter will be used. |
parameters | the custom parameters (optional, if you use an Extension on server side to handle the login) |
Sfs2X::Requests::LoginRequest::LoginRequest | ( | string | userName, |
string | password, | ||
string | zoneName | ||
) |
Sfs2X::Requests::LoginRequest::LoginRequest | ( | string | userName, |
string | password | ||
) |
Sfs2X::Requests::LoginRequest::LoginRequest | ( | string | userName | ) |