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

#include <i2psam.h>

Public Member Functions

 Socket (const std::string &SAMHost, uint16_t SAMPort, const std::string &minVer, const std::string &maxVer)
 
 Socket (const sockaddr_in &addr, const std::string &minVer, const std::string &maxVer)
 
 Socket (const Socket &rhs)
 
 ~Socket ()
 
void bootstrapI2P ()
 
void write (const std::string &msg)
 
std::string read ()
 
SOCKET release ()
 
void close ()
 
bool isOk () const
 
const std::string & getVersion () const
 
const std::string & getHost () const
 
uint16_t getPort () const
 
const std::string & getMinVer () const
 
const std::string & getMaxVer () const
 
const sockaddr_in & getAddress () const
 

Private Member Functions

void handshake ()
 
void init ()
 
Socketoperator= (const Socket &)
 

Private Attributes

SOCKET socket_
 
sockaddr_in servAddr_
 
std::string SAMHost_
 
uint16_t SAMPort_
 
const std::string minVer_
 
const std::string maxVer_
 
std::string version_
 

Detailed Description

Definition at line 213 of file i2psam.h.

Constructor & Destructor Documentation

SAM::Socket::Socket ( const std::string &  SAMHost,
uint16_t  SAMPort,
const std::string &  minVer,
const std::string &  maxVer 
)

Definition at line 74 of file i2psam.cpp.

Here is the call graph for this function:

SAM::Socket::Socket ( const sockaddr_in &  addr,
const std::string &  minVer,
const std::string &  maxVer 
)

Definition at line 90 of file i2psam.cpp.

Here is the call graph for this function:

SAM::Socket::Socket ( const Socket rhs)
explicit

Definition at line 100 of file i2psam.cpp.

Here is the call graph for this function:

SAM::Socket::~Socket ( )

Definition at line 110 of file i2psam.cpp.

Here is the call graph for this function:

Member Function Documentation

void SAM::Socket::bootstrapI2P ( )

Definition at line 120 of file i2psam.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void SAM::Socket::close ( )

Definition at line 215 of file i2psam.cpp.

Here is the caller graph for this function:

const sockaddr_in & SAM::Socket::getAddress ( ) const

Definition at line 252 of file i2psam.cpp.

Here is the caller graph for this function:

const std::string & SAM::Socket::getHost ( ) const

Definition at line 227 of file i2psam.cpp.

Here is the caller graph for this function:

const std::string & SAM::Socket::getMaxVer ( ) const

Definition at line 247 of file i2psam.cpp.

Here is the caller graph for this function:

const std::string & SAM::Socket::getMinVer ( ) const

Definition at line 242 of file i2psam.cpp.

Here is the caller graph for this function:

uint16_t SAM::Socket::getPort ( ) const

Definition at line 232 of file i2psam.cpp.

Here is the caller graph for this function:

const std::string & SAM::Socket::getVersion ( ) const

Definition at line 237 of file i2psam.cpp.

Here is the caller graph for this function:

void SAM::Socket::handshake ( )
private

Definition at line 152 of file i2psam.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void SAM::Socket::init ( )
private

Definition at line 127 of file i2psam.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool SAM::Socket::isOk ( ) const

Definition at line 222 of file i2psam.cpp.

Here is the caller graph for this function:

Socket& SAM::Socket::operator= ( const Socket )
private
std::string SAM::Socket::read ( )

Definition at line 188 of file i2psam.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

SOCKET SAM::Socket::release ( )

Definition at line 144 of file i2psam.cpp.

void SAM::Socket::write ( const std::string &  msg)

Definition at line 163 of file i2psam.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

const std::string SAM::Socket::maxVer_
private

Definition at line 245 of file i2psam.h.

const std::string SAM::Socket::minVer_
private

Definition at line 244 of file i2psam.h.

std::string SAM::Socket::SAMHost_
private

Definition at line 242 of file i2psam.h.

uint16_t SAM::Socket::SAMPort_
private

Definition at line 243 of file i2psam.h.

sockaddr_in SAM::Socket::servAddr_
private

Definition at line 241 of file i2psam.h.

SOCKET SAM::Socket::socket_
private

Definition at line 240 of file i2psam.h.

std::string SAM::Socket::version_
private

Definition at line 246 of file i2psam.h.


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