|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.electrotank.electroserver5.client.events.Event<EsMessageType>
com.electrotank.electroserver5.client.api.helper.EsMessage
com.electrotank.electroserver5.client.api.helper.EsResponse
com.electrotank.electroserver5.client.api.EsValidateAdditionalLoginResponse
public class EsValidateAdditionalLoginResponse
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 |
|---|
public EsValidateAdditionalLoginResponse()
public EsValidateAdditionalLoginResponse(org.apache.thrift.TBase t)
| Method Detail |
|---|
public com.electrotank.electroserver5.thrift.ThriftValidateAdditionalLoginResponse toThrift()
public com.electrotank.electroserver5.thrift.ThriftValidateAdditionalLoginResponse newThrift()
public void fromThrift(org.apache.thrift.TBase t_)
public boolean isApproved()
public void setApproved(boolean v)
public String getSecret()
public void setSecret(String v)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||