#include <i2psam.h>
|
enum | SessionStyle { sssStream,
sssDatagram,
sssRaw
} |
|
enum | eStatus {
OK,
EMPTY_ANSWER,
CLOSED_SOCKET,
CANNOT_PARSE_ERROR,
DUPLICATED_DEST,
DUPLICATED_ID,
I2P_ERROR,
INVALID_ID,
INVALID_KEY,
CANT_REACH_PEER,
TIMEOUT,
NOVERSION,
KEY_NOT_FOUND,
PEER_NOT_FOUND,
ALREADY_ACCEPTING,
FAILED,
CLOSED
} |
|
|
static std::string | hello (const std::string &minVer, const std::string &maxVer) |
|
static std::string | sessionCreate (SessionStyle style, const std::string &sessionID, const std::string &nickname, const std::string &destination=SAM_GENERATE_MY_DESTINATION, const std::string &options="") |
|
static std::string | streamAccept (const std::string &sessionID, bool silent=false) |
|
static std::string | streamConnect (const std::string &sessionID, const std::string &destination, bool silent=false) |
|
static std::string | streamForward (const std::string &sessionID, const std::string &host, uint16_t port, bool silent=false) |
|
static std::string | namingLookup (const std::string &name) |
|
static std::string | destGenerate () |
|
static eStatus | checkAnswer (const std::string &answer) |
|
static std::string | getValue (const std::string &answer, const std::string &key) |
|
Definition at line 71 of file i2psam.h.
Enumerator |
---|
OK |
|
EMPTY_ANSWER |
|
CLOSED_SOCKET |
|
CANNOT_PARSE_ERROR |
|
DUPLICATED_DEST |
|
DUPLICATED_ID |
|
I2P_ERROR |
|
INVALID_ID |
|
INVALID_KEY |
|
CANT_REACH_PEER |
|
TIMEOUT |
|
NOVERSION |
|
KEY_NOT_FOUND |
|
PEER_NOT_FOUND |
|
ALREADY_ACCEPTING |
|
FAILED |
|
CLOSED |
|
Definition at line 81 of file i2psam.h.
Enumerator |
---|
sssStream |
|
sssDatagram |
|
sssRaw |
|
Definition at line 74 of file i2psam.h.
std::string SAM::Message::createSAMRequest |
( |
const char * |
format, |
|
|
|
... |
|
) |
| |
|
staticprivate |
std::string SAM::Message::destGenerate |
( |
| ) |
|
|
static |
std::string SAM::Message::getValue |
( |
const std::string & |
answer, |
|
|
const std::string & |
key |
|
) |
| |
|
static |
std::string SAM::Message::hello |
( |
const std::string & |
minVer, |
|
|
const std::string & |
maxVer |
|
) |
| |
|
static |
std::string SAM::Message::namingLookup |
( |
const std::string & |
name | ) |
|
|
static |
std::string SAM::Message::sessionCreate |
( |
SessionStyle |
style, |
|
|
const std::string & |
sessionID, |
|
|
const std::string & |
nickname, |
|
|
const std::string & |
destination = SAM_GENERATE_MY_DESTINATION , |
|
|
const std::string & |
options = "" |
|
) |
| |
|
static |
std::string SAM::Message::streamAccept |
( |
const std::string & |
sessionID, |
|
|
bool |
silent = false |
|
) |
| |
|
static |
std::string SAM::Message::streamConnect |
( |
const std::string & |
sessionID, |
|
|
const std::string & |
destination, |
|
|
bool |
silent = false |
|
) |
| |
|
static |
std::string SAM::Message::streamForward |
( |
const std::string & |
sessionID, |
|
|
const std::string & |
host, |
|
|
uint16_t |
port, |
|
|
bool |
silent = false |
|
) |
| |
|
static |
The documentation for this class was generated from the following files: