#include <list>
#include <functional>
-#include "os_int.h"
-#include "blowfish.h"
-#include "rs_packets.h"
-#include "stg_logger.h"
+#include "stg/os_int.h"
+#include "stg/blowfish.h"
+#include "stg/rs_packets.h"
+#include "stg/logger.h"
struct UserData
{
// Networking stuff
bool PrepareNet();
bool FinalizeNet();
- bool WaitPackets(int sd) const;
bool RecvPacket();
// Parsing stuff
bool CheckHeader(const RS_PACKET_HEADER & header) const;
void ProcessTimeouts();
bool Disconnect(const UserData & data) const;
bool Connect(const UserData & data) const;
- // Decryption stuff
- void InitEncrypt(BLOWFISH_CTX * ctx, const std::string & password);
- void Decrypt(BLOWFISH_CTX * ctx, char * dst, const char * src, int len8);
BLOWFISH_CTX ctxS;
STG_LOGGER & WriteServLog;