Community driven twister-core
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
588 B

#ifndef TWISTER_H
#define TWISTER_H
#include "util.h"
#include <boost/thread.hpp>
#define LIBTORRENT_PORT_OFFSET 1000
class twister
{
public:
twister();
};
void startSessionTorrent(boost::thread_group& threadGroup);
void stopSessionTorrent();
std::string createSignature(std::string const &strMessage, std::string const &strUsername);
bool verifySignature(std::string const &strMessage, std::string const &strUsername, std::string const &strSign);
bool acceptSignedPost(char const *data, int data_size, std::string username, int seq);
int getBestHeight();
#endif // TWISTER_H