Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

RenderFarmServerThread Class Reference

#include <renderfarm.h>

List of all members.

Public Member Functions

 RenderFarmServerThread (ArrayList< PluginServer * > *plugindb, RenderFarmServer *server, int number)
 ~RenderFarmServerThread ()
int read_socket (char *data, int len, int timeout)
int write_socket (char *data, int len, int timeout)
int start_loop ()
void send_preferences ()
void send_asset ()
void send_edl ()
void send_package (unsigned char *buffer)
void set_progress (unsigned char *buffer)
int set_video_map (unsigned char *buffer)
void set_result (unsigned char *buffer)
void get_result ()
void reallocate_buffer (int size)
void run ()

Static Public Member Functions

static int read_socket (int socket_fd, char *data, int len, int timeout)
static int write_socket (int socket_fd, char *data, int len, int timeout)
static int write_string (int socket_fd, char *string)

Public Attributes

ArrayList< PluginServer * > * plugindb
RenderFarmServerserver
int socket_fd
int number
double frames_per_second
Assetdefault_asset
unsigned char * buffer
int64_t buffer_allocated


Detailed Description

Definition at line 143 of file renderfarm.h.


Constructor & Destructor Documentation

RenderFarmServerThread::RenderFarmServerThread ArrayList< PluginServer * > *  plugindb,
RenderFarmServer server,
int  number
 

Definition at line 108 of file renderfarm.C.

References frames_per_second, and socket_fd.

RenderFarmServerThread::~RenderFarmServerThread  ) 
 

Definition at line 123 of file renderfarm.C.

References socket_fd.


Member Function Documentation

void RenderFarmServerThread::get_result  ) 
 

Definition at line 595 of file renderfarm.C.

References RenderFarmServer::result_return, server, and write_socket().

Referenced by run().

int RenderFarmServerThread::read_socket char *  data,
int  len,
int  timeout
 

Definition at line 314 of file renderfarm.C.

References read_socket(), and socket_fd.

int RenderFarmServerThread::read_socket int  socket_fd,
char *  data,
int  len,
int  timeout
[static]
 

Definition at line 229 of file renderfarm.C.

Referenced by RenderFarmFSServer::handle_request(), RenderFarmClientThread::read_socket(), read_socket(), and run().

void RenderFarmServerThread::reallocate_buffer int  size  ) 
 

Definition at line 324 of file renderfarm.C.

References buffer, and buffer_allocated.

Referenced by RenderFarmFSServer::handle_request(), and run().

void RenderFarmServerThread::run  ) 
 

Definition at line 339 of file renderfarm.C.

References _, buffer, buffer_allocated, get_result(), read_socket(), reallocate_buffer(), RENDERFARM_ASSET, RENDERFARM_DONE, RENDERFARM_EDL, RENDERFARM_GET_RESULT, RENDERFARM_PACKAGE, RENDERFARM_PREFERENCES, RENDERFARM_PROGRESS, RENDERFARM_SET_RESULT, RENDERFARM_SET_VMAP, send_asset(), send_edl(), send_package(), send_preferences(), set_progress(), set_result(), set_video_map(), and socket_fd.

void RenderFarmServerThread::send_asset  ) 
 

Definition at line 461 of file renderfarm.C.

References RenderFarmServer::default_asset, Asset::save_defaults(), server, socket_fd, FileXML::string, FileXML::terminate_string(), Asset::write(), and write_string().

Referenced by run().

void RenderFarmServerThread::send_edl  ) 
 

Definition at line 488 of file renderfarm.C.

References RenderFarmServer::edl, plugindb, EDL::save_xml(), server, socket_fd, FileXML::string, FileXML::terminate_string(), and write_string().

Referenced by run().

void RenderFarmServerThread::send_package unsigned char *  buffer  ) 
 

Definition at line 506 of file renderfarm.C.

References RenderFarmServer::brender, frames_per_second, server, STORE_INT32, and write_socket().

Referenced by run().

void RenderFarmServerThread::send_preferences  ) 
 

Definition at line 449 of file renderfarm.C.

References RenderFarmServer::preferences, Preferences::save_defaults(), server, socket_fd, and write_string().

Referenced by run().

void RenderFarmServerThread::set_progress unsigned char *  buffer  ) 
 

Definition at line 556 of file renderfarm.C.

References server, RenderFarmServer::total_return, and RenderFarmServer::total_return_lock.

Referenced by run().

void RenderFarmServerThread::set_result unsigned char *  buffer  ) 
 

Definition at line 587 of file renderfarm.C.

References RenderFarmServer::result_return, and server.

Referenced by run().

int RenderFarmServerThread::set_video_map unsigned char *  buffer  ) 
 

Definition at line 566 of file renderfarm.C.

References RenderFarmServer::brender, server, BRender::set_video_map(), and write_socket().

Referenced by run().

int RenderFarmServerThread::start_loop  ) 
 

Definition at line 133 of file renderfarm.C.

References _, ATTEMPT_DELAY, Preferences::get_node_hostname(), Preferences::get_node_port(), number, RenderFarmServer::preferences, server, and socket_fd.

Referenced by RenderFarmServer::start_clients().

int RenderFarmServerThread::write_socket char *  data,
int  len,
int  timeout
 

Definition at line 319 of file renderfarm.C.

References socket_fd, and write_socket().

int RenderFarmServerThread::write_socket int  socket_fd,
char *  data,
int  len,
int  timeout
[static]
 

Definition at line 285 of file renderfarm.C.

Referenced by get_result(), RenderFarmFSServer::handle_request(), send_package(), set_video_map(), RenderFarmClientThread::write_socket(), write_socket(), and write_string().

int RenderFarmServerThread::write_string int  socket_fd,
char *  string
[static]
 

Definition at line 432 of file renderfarm.C.

References STORE_INT32, and write_socket().

Referenced by send_asset(), send_edl(), and send_preferences().


Member Data Documentation

unsigned char* RenderFarmServerThread::buffer
 

Definition at line 185 of file renderfarm.h.

Referenced by RenderFarmFSServer::handle_request(), reallocate_buffer(), and run().

int64_t RenderFarmServerThread::buffer_allocated
 

Definition at line 186 of file renderfarm.h.

Referenced by reallocate_buffer(), and run().

Asset* RenderFarmServerThread::default_asset
 

Definition at line 184 of file renderfarm.h.

double RenderFarmServerThread::frames_per_second
 

Definition at line 182 of file renderfarm.h.

Referenced by RenderFarmServerThread(), and send_package().

int RenderFarmServerThread::number
 

Definition at line 180 of file renderfarm.h.

Referenced by start_loop().

ArrayList<PluginServer*>* RenderFarmServerThread::plugindb
 

Definition at line 176 of file renderfarm.h.

Referenced by send_edl().

RenderFarmServer* RenderFarmServerThread::server
 

Definition at line 177 of file renderfarm.h.

Referenced by get_result(), send_asset(), send_edl(), send_package(), send_preferences(), set_progress(), set_result(), set_video_map(), and start_loop().

int RenderFarmServerThread::socket_fd
 

Definition at line 179 of file renderfarm.h.

Referenced by RenderFarmClient::main_loop(), read_socket(), RenderFarmServerThread(), run(), send_asset(), send_edl(), send_preferences(), start_loop(), write_socket(), and ~RenderFarmServerThread().


The documentation for this class was generated from the following files:
Generated on Sun Jan 8 13:39:25 2006 for Cinelerra-svn by  doxygen 1.4.4