#include <i2psam.h>
|
| StreamSession (const std::string &nickname, const std::string &SAMHost=SAM_DEFAULT_ADDRESS, uint16_t SAMPort=SAM_DEFAULT_PORT, const std::string &destination=SAM_GENERATE_MY_DESTINATION, const std::string &i2pOptions=SAM_DEFAULT_I2P_OPTIONS, const std::string &minVer=SAM_DEFAULT_MIN_VER, const std::string &maxVer=SAM_DEFAULT_MAX_VER) |
|
| StreamSession (StreamSession &rhs) |
|
| ~StreamSession () |
|
RequestResult< std::auto_ptr< Socket > > | accept (bool silent) |
|
RequestResult< std::auto_ptr< Socket > > | connect (const std::string &destination, bool silent) |
|
RequestResult< void > | forward (const std::string &host, uint16_t port, bool silent) |
|
RequestResult< const std::string > | namingLookup (const std::string &name) const |
|
RequestResult< const FullDestination > | destGenerate () const |
|
void | stopForwarding (const std::string &host, uint16_t port) |
|
void | stopForwardingAll () |
|
const FullDestination & | getMyDestination () const |
|
const sockaddr_in & | getSAMAddress () const |
|
const std::string & | getSAMHost () const |
|
uint16_t | getSAMPort () const |
|
const std::string & | getNickname () const |
|
const std::string & | getSessionID () const |
|
const std::string & | getSAMMinVer () const |
|
const std::string & | getSAMMaxVer () const |
|
const std::string & | getSAMVersion () const |
|
const std::string & | getOptions () const |
|
bool | isSick () const |
|
|
static Message::Answer< const std::string > | rawRequest (Socket &socket, const std::string &requestStr) |
|
static Message::Answer< const std::string > | request (Socket &socket, const std::string &requestStr, const std::string &keyOnSuccess) |
|
static Message::eStatus | request (Socket &socket, const std::string &requestStr) |
|
static Message::Answer< const std::string > | createStreamSession (Socket &socket, const std::string &sessionID, const std::string &nickname, const std::string &destination, const std::string &options) |
|
static Message::Answer< const std::string > | namingLookup (Socket &socket, const std::string &name) |
|
static Message::Answer< const FullDestination > | destGenerate (Socket &socket) |
|
static Message::eStatus | accept (Socket &socket, const std::string &sessionID, bool silent) |
|
static Message::eStatus | connect (Socket &socket, const std::string &sessionID, const std::string &destination, bool silent) |
|
static Message::eStatus | forward (Socket &socket, const std::string &sessionID, const std::string &host, uint16_t port, bool silent) |
|
Definition at line 339 of file i2psam.h.
SAM::StreamSession::~StreamSession |
( |
| ) |
|
RequestResult< std::auto_ptr< Socket > > SAM::StreamSession::connect |
( |
const std::string & |
destination, |
|
|
bool |
silent |
|
) |
| |
Message::eStatus SAM::StreamSession::connect |
( |
Socket & |
socket, |
|
|
const std::string & |
sessionID, |
|
|
const std::string & |
destination, |
|
|
bool |
silent |
|
) |
| |
|
staticprivate |
FullDestination SAM::StreamSession::createStreamSession |
( |
const std::string & |
destination | ) |
|
|
private |
Message::Answer< const std::string > SAM::StreamSession::createStreamSession |
( |
Socket & |
socket, |
|
|
const std::string & |
sessionID, |
|
|
const std::string & |
nickname, |
|
|
const std::string & |
destination, |
|
|
const std::string & |
options |
|
) |
| |
|
staticprivate |
void SAM::StreamSession::fallSick |
( |
| ) |
const |
|
private |
RequestResult< void > SAM::StreamSession::forward |
( |
const std::string & |
host, |
|
|
uint16_t |
port, |
|
|
bool |
silent |
|
) |
| |
Message::eStatus SAM::StreamSession::forward |
( |
Socket & |
socket, |
|
|
const std::string & |
sessionID, |
|
|
const std::string & |
host, |
|
|
uint16_t |
port, |
|
|
bool |
silent |
|
) |
| |
|
staticprivate |
std::string SAM::StreamSession::generateSessionID |
( |
| ) |
|
|
static |
const std::string & SAM::StreamSession::getNickname |
( |
| ) |
const |
const std::string & SAM::StreamSession::getOptions |
( |
| ) |
const |
const sockaddr_in & SAM::StreamSession::getSAMAddress |
( |
| ) |
const |
const std::string & SAM::StreamSession::getSAMHost |
( |
| ) |
const |
const std::string & SAM::StreamSession::getSAMMaxVer |
( |
| ) |
const |
const std::string & SAM::StreamSession::getSAMMinVer |
( |
| ) |
const |
uint16_t SAM::StreamSession::getSAMPort |
( |
| ) |
const |
const std::string & SAM::StreamSession::getSAMVersion |
( |
| ) |
const |
const std::string & SAM::StreamSession::getSessionID |
( |
| ) |
const |
bool SAM::StreamSession::isSick |
( |
| ) |
const |
RequestResult< const std::string > SAM::StreamSession::namingLookup |
( |
const std::string & |
name | ) |
const |
Message::Answer< const std::string > SAM::StreamSession::namingLookup |
( |
Socket & |
socket, |
|
|
const std::string & |
name |
|
) |
| |
|
staticprivate |
Message::Answer< const std::string > SAM::StreamSession::rawRequest |
( |
Socket & |
socket, |
|
|
const std::string & |
requestStr |
|
) |
| |
|
staticprivate |
Message::Answer< const std::string > SAM::StreamSession::request |
( |
Socket & |
socket, |
|
|
const std::string & |
requestStr, |
|
|
const std::string & |
keyOnSuccess |
|
) |
| |
|
staticprivate |
void SAM::StreamSession::stopForwarding |
( |
const std::string & |
host, |
|
|
uint16_t |
port |
|
) |
| |
void SAM::StreamSession::stopForwardingAll |
( |
| ) |
|
const std::string SAM::StreamSession::i2pOptions_ |
|
private |
bool SAM::StreamSession::isSick_ |
|
mutableprivate |
const std::string SAM::StreamSession::nickname_ |
|
private |
const std::string SAM::StreamSession::sessionID_ |
|
private |
Socket SAM::StreamSession::socket_ |
|
private |
The documentation for this class was generated from the following files: