aboutsummaryrefslogtreecommitdiff
path: root/src/Database.cpp
AgeCommit message (Collapse)Author
2018-10-21Async connectdec05eba
2018-10-19Add put retrydec05eba
2018-10-16Listen on receive custom msg keydec05eba
2018-10-16Listen on key when sending custom messagedec05eba
2018-10-16Replace opendht with sibs pubsubdec05eba
This should fix issues with memory usage/leaks and make it easier to get peers subscribed to the same key. It will also be easier to modify and also works easier cross platform because of no additional dependencies.
2018-07-18Add method to get user lowest permission leveldec05eba
2018-05-22Follow cppcheck suggestionsdec05eba
2018-05-21Add methods to allow pingingdec05eba
2018-05-21Do not crash if ntp has been synced once and it fails next time (can happen ↵dec05eba
when laptop lid is closed)
2018-05-21Add sql debug, fix action counter in request wrong numberdec05eba
2018-05-21Fix bug with action gaps in response (invalid reference to local array)dec05eba
2018-05-21more debugdec05eba
2018-05-21Output action gapdec05eba
2018-05-21Ping node before sending old datadec05eba
2018-05-20Update memory usage testdec05eba
2018-05-18Resend data if it failsdec05eba
2018-05-17Fix bug where addData/addUser doesn't get send to listening peersdec05eba
2018-05-16Fix node raw data bug (data type mismatch), add debug statementsdec05eba
2018-05-16Add debug outputdec05eba
2018-05-16Fix info hash not hashing inputdec05eba
2018-05-16Add delay to sending old nodes to prevent spamming (and getting disconnected)dec05eba
2018-05-16Fix memory leak (mismatch free/delete/delete[]), fix invalid memory accessdec05eba
2018-05-16Store node encryption key with user data, fix encryption bug when using ↵dec05eba
additional data
2018-05-16Remove duplicate permission checking for ADD_DATA operationdec05eba
2018-05-16Return stored node users decrypted as hash map instead of vectordec05eba
2018-05-16Add functions to send/receive custom messagesdec05eba
2018-05-16Add method to get user groupsdec05eba
2018-05-15Remove duplicate authorization for add user (to group)dec05eba
2018-05-15Allow storing user without nodesdec05eba
2018-05-15Add methods to store/retrieve encrypted user (using argon2 for hash)dec05eba
2018-05-15Add versioning to request old data structuredec05eba
2018-05-15Store known remote nodes and connect to them next timedec05eba
2018-05-14Implement node load/fetch orderdec05eba
2018-05-14Ignore our own requests when requesting old packetsdec05eba
2018-05-14Only download nodes that we are missingdec05eba
2018-05-14Remove user/group classes, user public key/group id directly to database insteaddec05eba
2018-05-14Replace files with sqlitedec05eba
Using sqlite because sqlite has transactions, storing/loading from files automatically, unloading data that is not accessed often. Removed cosmetic data (node name, username). They can be added using addData by the application that uses odhtdb instead. Database callback functions can now be called with stored data using database.loadNode function. TODO: Add local user storage (with password) back, it has been temorary disabled
2018-05-11Remove commit, maybe readd it laterdec05eba
2018-05-03Temporary remove timestamp checkdec05eba
2018-05-01Update ntp dependency with bug fix, make error messages betterdec05eba
2018-05-01Remove unnecessary dependency 'fmt'dec05eba
2018-04-30Include fraction in timestamp. Timestamp is now in microsecondsdec05eba
2018-04-29Fail if ntp failsdec05eba
2018-04-29Make ntp sync more robust with retriesdec05eba
2018-04-28blalbadec05eba
2018-04-28Add stop seeding functiondec05eba
2018-04-28Add decryption (and caching) of data, even when adding encryption key after ↵dec05eba
data has been added
2018-04-27Change local storage to fit dchat betterdec05eba
2018-04-27Add local user storage function (locally stored encrypted user private key)dec05eba
2018-04-25Improve database startup by moving timestamp sync to where it's neededdec05eba