#include <BootStrapClient.h>
Public Member Functions | |
CBootStrapClient () | |
virtual | ~CBootStrapClient () |
int | Download (uint32_t server_ip, uint16_t server_port, const std::string &sDownloadDir) |
EventMessage * | GetEventMessage () const |
Private Types | |
typedef std::vector< CFileTransfer * > | FileTransfer |
Private Member Functions | |
int | Connect () |
int | InitSocketPair () |
int | HandleNotification (int) |
Private Attributes | |
uint32_t | m_uServerIP |
uint16_t | m_uServerPort |
std::string | m_sDownloadDir |
int | m_iSockPairFd [2] |
FileTransfer | m_filetrans |
EventMessage * | m_pEventMsg |
CBootStrapClient::CBootStrapClient | ( | ) |
Constructor of the class.
CBootStrapClient::~CBootStrapClient | ( | ) | [virtual] |
Destructor of the class.
int CBootStrapClient::Download | ( | uint32_t | server_ip, | |
uint16_t | server_port, | |||
const std::string & | sDownloadDir | |||
) |
Connects with the server for getting bootstraping information. Waits for notification from the CFileTrnafer.
int CBootStrapClient::HandleNotification | ( | int | ) | [private] |
When CFileTransfer notifies, the notification is handled by this function.