X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/641204dfbdb9fc870cdd2e7f9e3169a44693e7bf..5198de4acc353779ac6d532aab6ce38f38590c8c:/projects/rscriptd/listener.h diff --git a/projects/rscriptd/listener.h b/projects/rscriptd/listener.h index 4a012c77..c6fb143a 100644 --- a/projects/rscriptd/listener.h +++ b/projects/rscriptd/listener.h @@ -26,10 +26,10 @@ #include #include -#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 { @@ -94,19 +94,15 @@ private: // Networking stuff bool PrepareNet(); bool FinalizeNet(); - bool WaitPackets(int sd) const; bool RecvPacket(); // Parsing stuff - bool CheckHeader(const RS_PACKET_HEADER & header) const; + bool CheckHeader(const RS::PACKET_HEADER & header) const; bool GetParams(char * buffer, UserData & data); // Processing stuff void ProcessPending(); 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;