com.electrotank.electroserver5.client.api
Class EsValidateAdditionalLoginResponse

java.lang.Object
  extended by com.electrotank.electroserver5.client.events.Event<EsMessageType>
      extended by com.electrotank.electroserver5.client.api.helper.EsMessage
          extended by com.electrotank.electroserver5.client.api.helper.EsResponse
              extended by com.electrotank.electroserver5.client.api.EsValidateAdditionalLoginResponse
All Implemented Interfaces:
ThriftSerializable

public class EsValidateAdditionalLoginResponse
extends EsResponse

This request and the ValidateAdditionalLoginResponse messages are ones that you will not have to worry about as a developer. However, here is what ValidateAdditionalLoginRequest and ValidateAdditionalLoginResponse is for. After a client is connected and logged into the server it is possible for the client to then establish one or more additional connections for various reasons (for example, UDP connection for rapid message transfer, RTMP for video streaming, etc). When the client makes a connection to the server and attempts to login, the client indicates that they are trying to login for an additional time by sending their current username, and a secret. This secret can be anything, and is client generated. The server receives the login request containing the username and secrets, sees that the user is already logged in elsewhere, and sends a message to that user on the primary connection. That message is ValidationAdditionalLoginRequest. The ESEngine class intercepts this request, compares the secrete on it to the secret it knows about, and then responds using the ValidationAdditionalLoginResponse. If the secret matches then the client flags the 'approved' property as 'true' on the response. In which case the login succeeds.


Constructor Summary
EsValidateAdditionalLoginResponse()
           
EsValidateAdditionalLoginResponse(org.apache.thrift.TBase t)
           
 
Method Summary
 void fromThrift(org.apache.thrift.TBase t_)
           
 String getSecret()
          The secret.
 boolean isApproved()
          If the secrets match then set this to true before sending to the server.
 com.electrotank.electroserver5.thrift.ThriftValidateAdditionalLoginResponse newThrift()
           
 void setApproved(boolean v)
          If the secrets match then set this to true before sending to the server.
 void setSecret(String v)
          The secret.
 com.electrotank.electroserver5.thrift.ThriftValidateAdditionalLoginResponse toThrift()
           
 
Methods inherited from class com.electrotank.electroserver5.client.api.helper.EsMessage
getMessageNumber, getMessageType, getRequestId, getServerId, setMessageNumber, setMessageType, setRequestId, setServerId
 
Methods inherited from class com.electrotank.electroserver5.client.events.Event
getType, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EsValidateAdditionalLoginResponse

public EsValidateAdditionalLoginResponse()

EsValidateAdditionalLoginResponse

public EsValidateAdditionalLoginResponse(org.apache.thrift.TBase t)
Method Detail

toThrift

public com.electrotank.electroserver5.thrift.ThriftValidateAdditionalLoginResponse toThrift()

newThrift

public com.electrotank.electroserver5.thrift.ThriftValidateAdditionalLoginResponse newThrift()

fromThrift

public void fromThrift(org.apache.thrift.TBase t_)

isApproved

public boolean isApproved()
If the secrets match then set this to true before sending to the server.


setApproved

public void setApproved(boolean v)
If the secrets match then set this to true before sending to the server.


getSecret

public String getSecret()
The secret.


setSecret

public void setSecret(String v)
The secret.



Copyright © 2007-2010 Electrotank, Inc. All Rights Reserved.