HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_Transport Class Referenceabstract

#include <UT_IPC.h>

+ Inheritance diagram for UT_Transport:

Public Member Functions

 UT_Transport ()
 
virtual ~UT_Transport ()
 
virtual void abstract_class ()=0
 
virtual int close ()
 
virtual int read (char *buffer, int len)
 
virtual int write (const char *buffer, int len)
 
virtual UT_IPCPacketgetPacket ()
 
virtual int readv (const IOVEC_PTR, int)
 
virtual int writev (const IOVEC_PTR, int)
 
virtual int ok ()
 
virtual int inuse ()
 
const char * getError () const
 
int getDescriptor () const
 

Static Public Member Functions

static void daemon_start (int ignore_sigcld)
 

Public Attributes

int return_on_error
 

Protected Types

enum  UT_ShutDownType { UT_ShutDownReceive = 0, UT_ShutDownSend = 1, UT_ShutDownBoth = 2 }
 

Protected Member Functions

void setError (const char *module, const char *func, const char *mess)
 
int readPartial (char *buffer, int len)
 
int writePartial (char *buffer, int len)
 
virtual void shutdown (UT_ShutDownType)=0
 

Protected Attributes

int status
 
int td
 
char errorMsg [256]
 

Detailed Description

Definition at line 126 of file UT_IPC.h.

Member Enumeration Documentation

Enumerator
UT_ShutDownReceive 
UT_ShutDownSend 
UT_ShutDownBoth 

Definition at line 158 of file UT_IPC.h.

Constructor & Destructor Documentation

UT_Transport::UT_Transport ( )
virtual UT_Transport::~UT_Transport ( )
virtual

Member Function Documentation

virtual void UT_Transport::abstract_class ( )
pure virtual
virtual int UT_Transport::close ( )
virtual

Reimplemented in UT_UnixStream, UT_UnixSocket, and UT_Socket.

static void UT_Transport::daemon_start ( int  ignore_sigcld)
static
int UT_Transport::getDescriptor ( ) const
inline

Definition at line 146 of file UT_IPC.h.

const char* UT_Transport::getError ( ) const
inline

Definition at line 145 of file UT_IPC.h.

virtual UT_IPCPacket* UT_Transport::getPacket ( )
virtual
virtual int UT_Transport::inuse ( )
virtual
virtual int UT_Transport::ok ( )
virtual
virtual int UT_Transport::read ( char *  buffer,
int  len 
)
virtual
int UT_Transport::readPartial ( char *  buffer,
int  len 
)
protected
virtual int UT_Transport::readv ( const IOVEC_PTR  ,
int   
)
virtual
void UT_Transport::setError ( const char *  module,
const char *  func,
const char *  mess 
)
protected
virtual void UT_Transport::shutdown ( UT_ShutDownType  )
protectedpure virtual

Implemented in UT_Socket.

virtual int UT_Transport::write ( const char *  buffer,
int  len 
)
virtual
int UT_Transport::writePartial ( char *  buffer,
int  len 
)
protected
virtual int UT_Transport::writev ( const IOVEC_PTR  ,
int   
)
virtual

Member Data Documentation

char UT_Transport::errorMsg[256]
protected

Definition at line 167 of file UT_IPC.h.

int UT_Transport::return_on_error

Definition at line 148 of file UT_IPC.h.

int UT_Transport::status
protected

Definition at line 165 of file UT_IPC.h.

int UT_Transport::td
protected

Definition at line 166 of file UT_IPC.h.


The documentation for this class was generated from the following file: