CBootStrapClient Class Reference

#include <BootStrapClient.h>

List of all members.

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


Detailed Description

A class for communicating with Bootstrap server.


Constructor & Destructor Documentation

CBootStrapClient::CBootStrapClient (  ) 

Constructor of the class.

CBootStrapClient::~CBootStrapClient (  )  [virtual]

Destructor of the class.


Member Function Documentation

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.


The documentation for this class was generated from the following files:
Generated on Thu Sep 16 11:51:44 2010 for Communication Component by  doxygen 1.4.7