Anoncoin  0.9.4
P2P Digital Currency
Classes | Public Member Functions | Private Attributes | List of all members
SAM::StreamSessionAdapter Class Reference

#include <i2pwrapper.h>

Inheritance diagram for SAM::StreamSessionAdapter:
[legend]

Classes

class  SessionHolder
 

Public Member Functions

 StreamSessionAdapter (const std::string &nickname, const std::string &SAMHost=SAM_DEFAULT_ADDRESS, uint16_t SAMPort=SAM_DEFAULT_PORT, const std::string &myDestination=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)
 
 ~StreamSessionAdapter ()
 
SAM::SOCKET accept (bool silent)
 
SAM::SOCKET connect (const std::string &destination, bool silent)
 
bool forward (const std::string &host, uint16_t port, bool silent)
 
std::string namingLookup (const std::string &name) const
 
SAM::FullDestination destGenerate () const
 
void stopForwarding (const std::string &host, uint16_t port)
 
void stopForwardingAll ()
 
const SAM::FullDestinationgetMyDestination () const
 
const sockaddr_in & getSAMAddress () const
 
const std::string & getSAMHost () const
 
uint16_t getSAMPort () const
 
const std::string & getNickname () const
 
const std::string & getSAMMinVer () const
 
const std::string & getSAMMaxVer () const
 
const std::string & getSAMVersion () const
 
const std::string & getOptions () const
 
const std::string & getSessionID () const
 

Private Attributes

std::auto_ptr< SessionHoldersessionHolder_
 

Detailed Description

Definition at line 19 of file i2pwrapper.h.

Constructor & Destructor Documentation

SAM::StreamSessionAdapter::StreamSessionAdapter ( const std::string &  nickname,
const std::string &  SAMHost = SAM_DEFAULT_ADDRESS,
uint16_t  SAMPort = SAM_DEFAULT_PORT,
const std::string &  myDestination = 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 
)

Definition at line 77 of file i2pwrapper.cpp.

SAM::StreamSessionAdapter::~StreamSessionAdapter ( )

Definition at line 91 of file i2pwrapper.cpp.

Member Function Documentation

SAM::SOCKET SAM::StreamSessionAdapter::accept ( bool  silent)

Definition at line 94 of file i2pwrapper.cpp.

SAM::SOCKET SAM::StreamSessionAdapter::connect ( const std::string &  destination,
bool  silent 
)

Definition at line 101 of file i2pwrapper.cpp.

Here is the caller graph for this function:

SAM::FullDestination SAM::StreamSessionAdapter::destGenerate ( ) const

Definition at line 119 of file i2pwrapper.cpp.

bool SAM::StreamSessionAdapter::forward ( const std::string &  host,
uint16_t  port,
bool  silent 
)

Definition at line 108 of file i2pwrapper.cpp.

const SAM::FullDestination & SAM::StreamSessionAdapter::getMyDestination ( ) const

Definition at line 135 of file i2pwrapper.cpp.

Here is the caller graph for this function:

const std::string & SAM::StreamSessionAdapter::getNickname ( ) const

Definition at line 155 of file i2pwrapper.cpp.

const std::string & SAM::StreamSessionAdapter::getOptions ( ) const

Definition at line 175 of file i2pwrapper.cpp.

const sockaddr_in & SAM::StreamSessionAdapter::getSAMAddress ( ) const

Definition at line 140 of file i2pwrapper.cpp.

const std::string & SAM::StreamSessionAdapter::getSAMHost ( ) const

Definition at line 145 of file i2pwrapper.cpp.

const std::string & SAM::StreamSessionAdapter::getSAMMaxVer ( ) const

Definition at line 165 of file i2pwrapper.cpp.

const std::string & SAM::StreamSessionAdapter::getSAMMinVer ( ) const

Definition at line 160 of file i2pwrapper.cpp.

uint16_t SAM::StreamSessionAdapter::getSAMPort ( ) const

Definition at line 150 of file i2pwrapper.cpp.

const std::string & SAM::StreamSessionAdapter::getSAMVersion ( ) const

Definition at line 170 of file i2pwrapper.cpp.

const std::string & SAM::StreamSessionAdapter::getSessionID ( ) const

Definition at line 180 of file i2pwrapper.cpp.

std::string SAM::StreamSessionAdapter::namingLookup ( const std::string &  name) const

Definition at line 113 of file i2pwrapper.cpp.

Here is the caller graph for this function:

void SAM::StreamSessionAdapter::stopForwarding ( const std::string &  host,
uint16_t  port 
)

Definition at line 125 of file i2pwrapper.cpp.

void SAM::StreamSessionAdapter::stopForwardingAll ( )

Definition at line 130 of file i2pwrapper.cpp.

Member Data Documentation

std::auto_ptr<SessionHolder> SAM::StreamSessionAdapter::sessionHolder_
private

Definition at line 55 of file i2pwrapper.h.


The documentation for this class was generated from the following files: