aboutsummaryrefslogtreecommitdiff
path: root/src/network/clientopcodes.cpp
Commit message (Expand)AuthorAge
* [CSM] Add flavour limits controlled by server (#5930)Loïc Blot2017-07-18
* Chat protocol rewrite (#5117)Loïc Blot2017-07-16
* Have the server send the player list to the client (#5924)red-0012017-06-08
* Sound API: Add fading soundsBrandon2017-05-03
* Add clouds APIBen Deutsch2017-04-30
* Network:Remove old opcodes and fix documentation. (#5573)red-0012017-04-22
* Fix non reverted change on TOSERVER_BREATH compatLoic Blot2017-01-01
* Breath cheat fix: server sideLoic Blot2017-01-01
* Make early protocol auth mechanism generic, and add SRPest312015-05-11
* Prepare Protocol v25 init & authentication.Loic Blot2015-03-13
* Handle the newly added TOCLIENT_ACCESS_DENIED and TOCLIENT_DELETE_PARTICLESPA...Loic Blot2015-03-13
* Rename some packet and handlers to <packet>_Legacy name for compat layer betw...Loic Blot2015-03-13
* [Patch 2/4] Network rework: packet writing, sending and cleanupsLoic Blot2015-02-16
* Network Layer 7 rework (Packet handling)Loic Blot2015-02-10
Database_SQLite3(); void beginSave(); void endSave(); bool saveBlock(const v3s16 &pos, const std::string &data); void loadBlock(const v3s16 &pos, std::string *block); bool deleteBlock(const v3s16 &pos); void listAllLoadableBlocks(std::vector<v3s16> &dst); bool initialized() const { return m_initialized; } private: // Open the database void openDatabase(); // Create the database structure void createDatabase(); // Open and initialize the database if needed void verifyDatabase(); void bindPos(sqlite3_stmt *stmt, const v3s16 &pos, int index=1); bool m_initialized; std::string m_savedir; sqlite3 *m_database; sqlite3_stmt *m_stmt_read; sqlite3_stmt *m_stmt_write; sqlite3_stmt *m_stmt_list; sqlite3_stmt *m_stmt_delete; sqlite3_stmt *m_stmt_begin; sqlite3_stmt *m_stmt_end; s64 m_busy_handler_data[2]; static int busyHandler(void *data, int count); }; #endif