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

PLearn::IPopen Class Reference

#include <IPopen.h>

Inheritance diagram for PLearn::IPopen:

Inheritance graph
[legend]
Collaboration diagram for PLearn::IPopen:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 IPopen (IPServer &server)
 IPopen (IPServer &server, const string &command, bool the_verbose=false)
 ~IPopen ()
int get_socket_fd () const

Public Attributes

PStream pipe

Protected Member Functions

void launch (IPServer &server, const string &command)
 full text variant: this one is interpreted like a console /bin/sh command

void establish_communication (IPServer &server)

Protected Attributes

bool verbose
int socket_fd

Constructor & Destructor Documentation

PLearn::IPopen::IPopen IPServer server  )  [inline]
 

Definition at line 119 of file IPopen.h.

References establish_communication().

PLearn::IPopen::IPopen IPServer server,
const string command,
bool  the_verbose = false
[inline]
 

Definition at line 121 of file IPopen.h.

References launch(), and verbose.

PLearn::IPopen::~IPopen  ) 
 

Definition at line 67 of file IPopen.cc.

References socket_fd.


Member Function Documentation

void PLearn::IPopen::establish_communication IPServer server  )  [protected]
 

Definition at line 75 of file IPopen.cc.

References PLearn::PStream::attach(), PLearn::IPServer::get_address(), PLearn::IPServer::get_socket_fd(), pipe, PLERROR, and socket_fd.

Referenced by IPopen(), and launch().

int PLearn::IPopen::get_socket_fd  )  const [inline]
 

Definition at line 125 of file IPopen.h.

References socket_fd.

void PLearn::IPopen::launch IPServer server,
const string command
[protected]
 

full text variant: this one is interpreted like a console /bin/sh command

Definition at line 55 of file IPopen.cc.

References PLearn::endl(), establish_communication(), and verbose.

Referenced by IPopen().


Member Data Documentation

PStream PLearn::IPopen::pipe
 

Definition at line 116 of file IPopen.h.

Referenced by establish_communication().

int PLearn::IPopen::socket_fd [protected]
 

Definition at line 134 of file IPopen.h.

Referenced by establish_communication(), get_socket_fd(), and ~IPopen().

bool PLearn::IPopen::verbose [protected]
 

Definition at line 133 of file IPopen.h.

Referenced by IPopen(), and launch().


The documentation for this class was generated from the following files:
Generated on Tue Aug 17 16:24:34 2004 for PLearn by doxygen 1.3.7