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

RenderFarmClientThread Class Reference

#include <renderfarmclient.h>

List of all members.

Public Member Functions

 RenderFarmClientThread (RenderFarmClient *client)
 ~RenderFarmClientThread ()
int send_request_header (int request, int len)
int write_socket (char *data, int len, int timeout)
int read_socket (char *data, int len, int timeout)
void abort ()
void read_string (int socket_fd, char *&string)
void lock (char *location)
void unlock ()
void read_preferences (int socket_fd, Preferences *preferences)
void read_asset (int socket_fd, Asset *asset)
void read_edl (int socket_fd, EDL *edl, Preferences *preferences)
int read_package (int socket_fd, RenderPackage *package)
int send_completion (int socket_fd)
void main_loop (int socket_fd)
void run ()

Public Attributes

int socket_fd
RenderFarmClientclient
double frames_per_second
Mutex * mutex_lock


Detailed Description

Definition at line 52 of file renderfarmclient.h.


Constructor & Destructor Documentation

RenderFarmClientThread::RenderFarmClientThread RenderFarmClient client  ) 
 

Definition at line 204 of file renderfarmclient.C.

References frames_per_second, and mutex_lock.

RenderFarmClientThread::~RenderFarmClientThread  ) 
 

Definition at line 214 of file renderfarmclient.C.

References mutex_lock.


Member Function Documentation

void RenderFarmClientThread::abort  ) 
 

Definition at line 257 of file renderfarmclient.C.

References send_completion(), and socket_fd.

Referenced by read_socket(), and write_socket().

void RenderFarmClientThread::lock char *  location  ) 
 

Definition at line 264 of file renderfarmclient.C.

References mutex_lock.

Referenced by RenderFarmFSClient::fclose(), RenderFarmFSClient::fgetc(), RenderFarmFSClient::fgets(), RenderFarmFSClient::fileno(), RenderFarmFSClient::fopen(), RenderFarmFSClient::fputc(), RenderFarmFSClient::fread(), RenderFarmFSClient::fseek(), RenderFarmFSClient::ftell(), RenderFarmFSClient::fwrite(), FarmPackageRenderer::get_result(), RenderFarmFSClient::remove(), RenderFarmFSClient::rename(), FarmPackageRenderer::set_progress(), FarmPackageRenderer::set_result(), FarmPackageRenderer::set_video_map(), RenderFarmFSClient::stat(), and RenderFarmFSClient::stat64().

void RenderFarmClientThread::main_loop int  socket_fd  ) 
 

Definition at line 472 of file renderfarmclient.C.

Referenced by RenderFarmClient::main_loop().

void RenderFarmClientThread::read_asset int  socket_fd,
Asset asset
 

Definition at line 321 of file renderfarmclient.C.

References Asset::load_defaults(), Asset::read(), FileXML::read_from_string(), read_string(), RENDERFARM_ASSET, and send_request_header().

Referenced by run().

void RenderFarmClientThread::read_edl int  socket_fd,
EDL edl,
Preferences preferences
 

Definition at line 353 of file renderfarmclient.C.

References client, EDL::load_xml(), RenderFarmClient::plugindb, FileXML::read_from_string(), read_string(), RENDERFARM_EDL, and send_request_header().

Referenced by run().

int RenderFarmClientThread::read_package int  socket_fd,
RenderPackage package
 

Definition at line 413 of file renderfarmclient.C.

References RenderPackage::audio_end, RenderPackage::audio_start, frames_per_second, RenderPackage::path, READ_INT32, read_string(), RENDERFARM_PACKAGE, send_request_header(), STORE_INT32, RenderPackage::use_brender, RenderPackage::video_end, RenderPackage::video_start, and write_socket().

Referenced by run().

void RenderFarmClientThread::read_preferences int  socket_fd,
Preferences preferences
 

Definition at line 303 of file renderfarmclient.C.

References Preferences::load_defaults(), read_string(), RENDERFARM_PREFERENCES, and send_request_header().

Referenced by run().

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

Definition at line 247 of file renderfarmclient.C.

References abort(), RenderFarmServerThread::read_socket(), and socket_fd.

Referenced by RenderFarmFSClient::fgetc(), RenderFarmFSClient::fgets(), RenderFarmFSClient::fileno(), RenderFarmFSClient::fopen(), RenderFarmFSClient::fread(), RenderFarmFSClient::fseek(), RenderFarmFSClient::ftell(), RenderFarmFSClient::fwrite(), FarmPackageRenderer::get_result(), read_string(), FarmPackageRenderer::set_video_map(), RenderFarmFSClient::stat(), and RenderFarmFSClient::stat64().

void RenderFarmClientThread::read_string int  socket_fd,
char *&  string
 

Definition at line 274 of file renderfarmclient.C.

References read_socket().

Referenced by read_asset(), read_edl(), read_package(), and read_preferences().

void RenderFarmClientThread::run  ) 
 

Definition at line 478 of file renderfarmclient.C.

References _, client, EDL::create_objects(), frames_per_second, PackageRenderer::initialize(), RenderFarmClient::plugindb, read_asset(), read_edl(), read_package(), read_preferences(), PackageRenderer::render_package(), send_completion(), socket_fd, RenderPackage::video_end, and RenderPackage::video_start.

int RenderFarmClientThread::send_completion int  socket_fd  ) 
 

Definition at line 463 of file renderfarmclient.C.

References RENDERFARM_DONE, and send_request_header().

Referenced by abort(), and run().

int RenderFarmClientThread::send_request_header int  request,
int  len
 

Definition at line 221 of file renderfarmclient.C.

References STORE_INT32, and write_socket().

Referenced by RenderFarmFSClient::fclose(), RenderFarmFSClient::fgetc(), RenderFarmFSClient::fgets(), RenderFarmFSClient::fileno(), RenderFarmFSClient::fopen(), RenderFarmFSClient::fputc(), RenderFarmFSClient::fread(), RenderFarmFSClient::fseek(), RenderFarmFSClient::ftell(), RenderFarmFSClient::fwrite(), FarmPackageRenderer::get_result(), read_asset(), read_edl(), read_package(), read_preferences(), RenderFarmFSClient::remove(), RenderFarmFSClient::rename(), send_completion(), FarmPackageRenderer::set_progress(), FarmPackageRenderer::set_result(), FarmPackageRenderer::set_video_map(), RenderFarmFSClient::stat(), and RenderFarmFSClient::stat64().

void RenderFarmClientThread::unlock  ) 
 

Definition at line 269 of file renderfarmclient.C.

References mutex_lock.

Referenced by RenderFarmFSClient::fclose(), RenderFarmFSClient::fgetc(), RenderFarmFSClient::fgets(), RenderFarmFSClient::fileno(), RenderFarmFSClient::fopen(), RenderFarmFSClient::fputc(), RenderFarmFSClient::fread(), RenderFarmFSClient::fseek(), RenderFarmFSClient::ftell(), RenderFarmFSClient::fwrite(), FarmPackageRenderer::get_result(), RenderFarmFSClient::remove(), RenderFarmFSClient::rename(), FarmPackageRenderer::set_progress(), FarmPackageRenderer::set_result(), FarmPackageRenderer::set_video_map(), RenderFarmFSClient::stat(), and RenderFarmFSClient::stat64().

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

Definition at line 237 of file renderfarmclient.C.

References abort(), socket_fd, and RenderFarmServerThread::write_socket().

Referenced by RenderFarmFSClient::fclose(), RenderFarmFSClient::fgetc(), RenderFarmFSClient::fgets(), RenderFarmFSClient::fileno(), RenderFarmFSClient::fopen(), RenderFarmFSClient::fputc(), RenderFarmFSClient::fread(), RenderFarmFSClient::fseek(), RenderFarmFSClient::ftell(), RenderFarmFSClient::fwrite(), read_package(), RenderFarmFSClient::remove(), RenderFarmFSClient::rename(), send_request_header(), FarmPackageRenderer::set_progress(), FarmPackageRenderer::set_result(), FarmPackageRenderer::set_video_map(), RenderFarmFSClient::stat(), and RenderFarmFSClient::stat64().


Member Data Documentation

RenderFarmClient* RenderFarmClientThread::client
 

Definition at line 88 of file renderfarmclient.h.

Referenced by read_edl(), and run().

double RenderFarmClientThread::frames_per_second
 

Definition at line 90 of file renderfarmclient.h.

Referenced by read_package(), RenderFarmClientThread(), and run().

Mutex* RenderFarmClientThread::mutex_lock
 

Definition at line 91 of file renderfarmclient.h.

Referenced by lock(), RenderFarmClientThread(), unlock(), and ~RenderFarmClientThread().

int RenderFarmClientThread::socket_fd
 

Definition at line 86 of file renderfarmclient.h.

Referenced by abort(), read_socket(), run(), and write_socket().


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