Audiovox P965 Arkusz Danych Strona 122

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 280
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 121
API In CPP
119
#include "MikrotikAPITypes.h"
#define NOCONNECT 1
#define NOLOGIN 2
class MikrotikAPI {
private:
int fdSock;
bool littleEndian;
bool IsLittleEndian();
void Connect(const std::string &strIpAddress, int port);
void Disconnect();
// Word
void WriteLength(int messageLength);
int ReadLength();
void WriteWord(const std::string &strWord);
void ReadWord(std::string &strWordOut);
// MD5 helper functions
std::string MD5DigestToHexString(md5_byte_t *binaryDigest);
std::string MD5ToBinary(const std::string &strHex);
char HexStringToChar(const std::string &hexToConvert);
public:
MikrotikAPI();
MikrotikAPI(const std::string &strIpAddress, const std::string &strUsername,
const std::string &strPassword, int port);
~MikrotikAPI();
// API specific functions
int Login(const std::string &strUsername, const std::string &strPassword);
// Sentence
void WriteSentence(Sentence &writeSentence);
void ReadSentence(Sentence &sentenceOut);
// Block
void ReadBlock(Block &block);
};
Przeglądanie stron 121
1 2 ... 117 118 119 120 121 122 123 124 125 126 127 ... 279 280

Komentarze do niniejszej Instrukcji

Brak uwag