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

Tool_Relay Class Reference

#include <RunToolClientPrivate.H>

List of all members.

Public Member Functions

 Tool_Relay ()
 ~Tool_Relay ()
void setup (std::ostream *report, std::ostream *value, Basics::mutex *mu, const Text &label) throw (TCP_sock::failure)
bool finish (bool wait) throw (TCP_sock::failure, FS::Failure)
void get_sockaddr (sockaddr_in &sock)
void body ()

Private Member Functions

 Tool_Relay (Tool_Relay &)
void operator= (Tool_Relay &)

Private Attributes

Basics::mutex m
TCP_socklistener
TCP_socks
Basics::thread relay
std::ostream * report
std::ostream * value
Basics::mutexmu
Text label
char * buffer
int buff_len
int remaining
bool written
TCP_sock::failure tcp_f
bool write_failed
FS::Failure write_failure


Constructor & Destructor Documentation

Tool_Relay::Tool_Relay  ) 
 

Definition at line 299 of file RunToolClient.C.

References buff_len, buffer, listener, mu, remaining, report, s, value, and write_failed.

Tool_Relay::~Tool_Relay  ) 
 

Definition at line 312 of file RunToolClient.C.

References buffer, listener, and s.

Tool_Relay::Tool_Relay Tool_Relay  )  [private]
 


Member Function Documentation

void Tool_Relay::body  ) 
 

Definition at line 326 of file RunToolClient.C.

References buff_len, buffer, TCP_sock::enable_alerts(), TCP_sock::end_of_file, FdCache::flush(), label, listener, Basics::mutex::lock(), m, mu, NEW_PTRFREE_ARRAY, TCP_sock::recv_data(), RELAY_BUFFER_SIZE, remaining, report, s, tcp_f, TCP_sock::test_alert(), Basics::mutex::unlock(), value, TCP_sock::wait_for_connect(), FS::Write(), write_failed, write_failure, and written.

Referenced by relay_thread().

bool Tool_Relay::finish bool  wait  )  throw (TCP_sock::failure, FS::Failure)
 

Definition at line 442 of file RunToolClient.C.

Referenced by RunTool::do_it().

void Tool_Relay::get_sockaddr sockaddr_in &  sock  ) 
 

Definition at line 463 of file RunToolClient.C.

References TCP_sock::get_local_addr(), listener, and s.

Referenced by RunTool::send_relay_socket().

void Tool_Relay::operator= Tool_Relay  )  [private]
 

void Tool_Relay::setup std::ostream *  report,
std::ostream *  value,
Basics::mutex mu,
const Text label
throw (TCP_sock::failure)
 

Definition at line 418 of file RunToolClient.C.

References mu, NEW, NEW_PTRFREE_ARRAY, RELAY_BUFFER_SIZE, and relay_thread().

Referenced by RunTool::do_it().


Member Data Documentation

int Tool_Relay::buff_len [private]
 

Definition at line 83 of file RunToolClientPrivate.H.

Referenced by body(), and Tool_Relay().

char* Tool_Relay::buffer [private]
 

Definition at line 82 of file RunToolClientPrivate.H.

Referenced by body(), Tool_Relay(), and ~Tool_Relay().

Text Tool_Relay::label [private]
 

Definition at line 81 of file RunToolClientPrivate.H.

Referenced by body().

TCP_sock* Tool_Relay::listener [private]
 

Definition at line 75 of file RunToolClientPrivate.H.

Referenced by body(), get_sockaddr(), Tool_Relay(), and ~Tool_Relay().

Basics::mutex Tool_Relay::m [private]
 

Definition at line 74 of file RunToolClientPrivate.H.

Referenced by body().

Basics::mutex* Tool_Relay::mu [private]
 

Definition at line 80 of file RunToolClientPrivate.H.

Referenced by body(), and Tool_Relay().

Basics::thread Tool_Relay::relay [private]
 

Definition at line 77 of file RunToolClientPrivate.H.

int Tool_Relay::remaining [private]
 

Definition at line 84 of file RunToolClientPrivate.H.

Referenced by body(), and Tool_Relay().

std::ostream* Tool_Relay::report [private]
 

Definition at line 78 of file RunToolClientPrivate.H.

Referenced by body(), and Tool_Relay().

TCP_sock* Tool_Relay::s [private]
 

Definition at line 76 of file RunToolClientPrivate.H.

Referenced by body(), get_sockaddr(), Tool_Relay(), and ~Tool_Relay().

TCP_sock::failure Tool_Relay::tcp_f [private]
 

Definition at line 86 of file RunToolClientPrivate.H.

Referenced by body().

std::ostream* Tool_Relay::value [private]
 

Definition at line 79 of file RunToolClientPrivate.H.

Referenced by body(), and Tool_Relay().

bool Tool_Relay::write_failed [private]
 

Definition at line 88 of file RunToolClientPrivate.H.

Referenced by body(), and Tool_Relay().

FS::Failure Tool_Relay::write_failure [private]
 

Definition at line 89 of file RunToolClientPrivate.H.

Referenced by body().

bool Tool_Relay::written [private]
 

Definition at line 85 of file RunToolClientPrivate.H.

Referenced by body().


The documentation for this class was generated from the following files:
Generated on Mon May 8 00:49:15 2006 for Vesta by  doxygen 1.4.2