#ifndef NetUnitH
#define NetUnitH
-#include "stg/blowfish.h"
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
#include <list>
#include <string>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
+#include "stg/blowfish.h"
#define STG_HEADER "SG04"
#define OK_HEADER "OKHD"
int RxLoginSAnswer();
int TxData(const char * text);
- int TxData(char * data);
int RxDataAnswer();
- void Encrypt(char * d, const char * s, BLOWFISH_CTX *ctx);
- void EnDecryptInit(const char * passwd, int passwdLen, BLOWFISH_CTX *ctx);
- void Decrypt(char * d, const char * s, BLOWFISH_CTX *ctx);
-
std::string server;
short unsigned port;
std::string login;