/usr/include/Eris-1.3/Eris/TransferInfo.h is in liberis-1.3-dev 1.3.21-0.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | #ifndef ERIS_TRANSFERINFO_H
#define ERIS_TRANSFERINFO_H
#include <string>
namespace Eris
{
/** A TransferInfo object represents the encapsulation of various data required
to successfully transfer a character from one server to another. The data includes
the new host and port of the transfer destination as well as fields to authenticate
the client as the owner of the transferred character. A TransferInfo object is
normally created during the servers reply to a transfer request initiated by the
client (eg. a teleport request)
*/
class TransferInfo
{
public:
/**
* @brief Ctor
* @param host The transfer destination servers hostname
* @param port The transfer destination servers port
* @param key Randomized key used to claim ownership over transferred character
* @param id Entity ID of transferred character on destination server
*/
TransferInfo(const std::string &host, int port, const std::string &key, const std::string &id);
/**
* @brief Get the hostname of the transfer destination server
* @return The hostname of the transfer destination
*/
const std::string & getHost() const;
/**
* @brief Get the connection port of the transfer destination server
* @return The connection port of the transfer destination server
*/
int getPort() const;
/**
* @brief Get the one-time generated possess key (used for claiming ownership)
* @return The possess key to claim ownership of a transferred character
*/
const std::string & getPossessKey() const;
/**
* @brief Get the entity ID of the transferred character on the destination server
* @return The entity ID of the transferred character on the destination server
*/
const std::string & getPossessEntityId() const;
private:
std::string m_host; ///< The transfer destination servers hostname
int m_port; ///< The transfer destination servers port
std::string m_possess_key; ///< A randomized one-time key to claim ownership over a transferred character
std::string m_possess_entity_id; ///< The entity ID of the trasnferred character on the destination server
};
}
#endif
|