| Prev | Next |
OTAdmin protocol is a protocol that makes it possible to communicate directly with OTServ even remotely (however it has to be enabled) and to execute some commands. This protocol works directly within OTServ like all other protocols - login protocol, game protocol, info protocol etc. so it means it works on same port that all other OTServ services. It is binary protocol which is done using standard NetworkMessages (class that most OTServ-related projects in C++ use).
For safety resons OTAdmin protocol can be encrypted. Encryption is not defined by protocol, only encryption interface is added into coded part so it means you can potentialy implement any encryption. However at the moment only one which is used is XTEA encryption with RSA-encrypted keys negotiation - it means that at first XTEA keys are transfered using RSA encryption and rest of connection is encrypted with XTEA using received keys. RSA key for negotation is stored on server, while XTEA key is always (usualy randomly) generated by client.
Encryption is automaticly detected and set by POT so in PHP you don't need to worry about anything connected with encryption. It's done internaly and mentioned only to give you a know.
Another safety enchantment is possiblity to enable password login required. As it requires you to put password, it can't be handled automaticly by POT - after connection you should check if password is required (after establishing connection all protocol flags are set).
POT implementation of OTAdmin protocol is complete (for current state of protocol development - it's still under development and at the moment provides only few commands):
Here is very simple example client session:
Curiosity: POT was the very first complete (for current protocol version) implementation of client API - it's version with the newest PAY_HOUSES command was released the day before oryginal OTAdmin tool!
Since saving and opening server is implemented in OTAdmin protocol and POT client for it, it is possible to evaluate full server-save cycle in a very simple way:
| Prev | Up | Next |
| Cache drivers | POT | Additional routines |