ASYNC_COMM Class Reference

Provides a means to send tasks asynchronously. More...

#include <async_comm.h>

List of all members.

Public Member Functions

 ASYNC_COMM (vector< m_task_t > tasks, m_host_t src_host, m_host_t dest_host, m_channel_t channel)
 ~ASYNC_COMM ()
int async_tasks_send_code (int argc, char *argv[])

Static Public Member Functions

static void async_tasks_send (vector< m_task_t > tasks, m_host_t src_host, m_host_t dest_host, m_channel_t channel)
 Asynchronously send a vector of tasks.

Public Attributes

vector< m_task_t > tasks
m_host_t src_host
m_host_t dest_host
m_channel_t channel


Detailed Description

Provides a means to send tasks asynchronously.

Upon a host failure during a send, it will retry the send from the beginning to the SAME host when that host becomes available again. Note that this may not be the behavior desired for DAG applications, where upon host failure during a send, the server will keep trying to send to that host instead of another. This in turn could delay the execution of other dependent tasks.


Constructor & Destructor Documentation

ASYNC_COMM::ASYNC_COMM vector< m_task_t >  tasks,
m_host_t  src_host,
m_host_t  dest_host,
m_channel_t  channel
 

ASYNC_COMM::~ASYNC_COMM  )  [inline]
 


Member Function Documentation

void ASYNC_COMM::async_tasks_send vector< m_task_t >  tasks,
m_host_t  src_host,
m_host_t  dest_host,
m_channel_t  channel
[static]
 

Asynchronously send a vector of tasks.

Assumes that receiver knows how many tasks it should expect to download

int ASYNC_COMM::async_tasks_send_code int  argc,
char *  argv[]
 


Member Data Documentation

m_channel_t ASYNC_COMM::channel
 

m_host_t ASYNC_COMM::dest_host
 

m_host_t ASYNC_COMM::src_host
 

vector<m_task_t> ASYNC_COMM::tasks
 


The documentation for this class was generated from the following files:
Generated on Mon Mar 12 16:22:01 2007 for SimBOINC by  doxygen 1.4.6