Client Agent
CLIENTAGENT_SET_STATE (1000)
CLIENTAGENT_SET_CLIENT_ID (1001)
CLIENTAGENT_SEND_DATAGRAM (1002)
CLIENTAGENT_EJECT (1004)
args(eject_code: u16, reason: &str)
Manually disconnect the client.
Translates to a CLIENT_EJECT message, which is sent from the CA to the client.
Reserved Eject Reasons
These codes are reserved for the convenience of game developers, as they may be useful for certain games:
100: Another client logged in on the same account elsewhere.
122: Login issue; the login mechanism rejected the client’s credentials.
126: Administrative access violation; the client attempted to issue an administrator command, but the gameserver did not authorize it.
151: Client logged out by administrator command, not necessarily for rules violation.
152: Client logged out (and possibly banned) by a moderator for rules violation.
154: Gameserver is going down for maintenance.
Note
Excerpt taken from the Astron project, licensed under the BSD-3-Clause license.
Copyright © 2013 Sam “CFSworks” Edwards
Copyright © 2013 Kevin “Kestred” Stenerson