code::LBInterfaceInfo_glib Class Reference

Inheritance diagram for code::LBInterfaceInfo_glib:

code::LBInterfaceInfo List of all members.

Detailed Description

LBInterfaceInfo_glib is an implementation of LBInterface that uses glib sockets for portably manipulating remote linear buffer files.

See also:
LBInterface

LinearBuffer

Author:
Charles Kerr
Version:
Id
code_LBInterface_glib.h,v 1.4 2009/06/02 20:17:38 lakshman Exp


Public Member Functions

 LBInterfaceInfo_glib (const URL &lbName)
virtual int open (int flags, LB_attr *attr)
virtual int read (void *buf, int buflen, LB_id_t msgid)
virtual int read (std::vector< char > &buf, LB_id_t msgid)
virtual int write (char *message, int length, LB_id_t msgid)
virtual int close ()
virtual int seek (int offset, LB_id_t from, LB_info *info)
virtual int stat (LB_status *status)
virtual int list (LB_info *lst, int nlist)
virtual LB_id_t previous_msgid ()
virtual int lock (int command, LB_id_t mid)
virtual int msg_info (LB_id_t msgid, LB_info *info)

Static Public Member Functions

static LBInterfaceInfocreateLBInterfaceInfo (const URL &lbName)
 Singleton: only one interface per lbname.

Public Attributes

int id
 LB library identifier.
code::URL name
 Name of LB.
DoNothingThreadMutex lbMutex
 Mutex to serialize access to LB.

Static Protected Member Functions

static bool isHostNameSyntax (const char *lbName)
 For checking whether the name is of host name syntax.


Constructor & Destructor Documentation

code::LBInterfaceInfo_glib::LBInterfaceInfo_glib ( const URL lbName  )  [inline]


Member Function Documentation

virtual int code::LBInterfaceInfo_glib::close (  )  [virtual]

Implements code::LBInterfaceInfo.

static LBInterfaceInfo* code::LBInterfaceInfo::createLBInterfaceInfo ( const URL lbName  )  [static, inherited]

Singleton: only one interface per lbname.

Returns:
already-created interface if available.

static bool code::LBInterfaceInfo::isHostNameSyntax ( const char *  lbName  )  [static, protected, inherited]

For checking whether the name is of host name syntax.

virtual int code::LBInterfaceInfo_glib::list ( LB_info *  lst,
int  nlist 
) [virtual]

Implements code::LBInterfaceInfo.

virtual int code::LBInterfaceInfo_glib::lock ( int  command,
LB_id_t  mid 
) [virtual]

Implements code::LBInterfaceInfo.

virtual int code::LBInterfaceInfo_glib::msg_info ( LB_id_t  msgid,
LB_info *  info 
) [virtual]

Implements code::LBInterfaceInfo.

virtual int code::LBInterfaceInfo_glib::open ( int  flags,
LB_attr *  attr 
) [virtual]

Implements code::LBInterfaceInfo.

virtual LB_id_t code::LBInterfaceInfo_glib::previous_msgid (  )  [virtual]

Implements code::LBInterfaceInfo.

virtual int code::LBInterfaceInfo_glib::read ( std::vector< char > &  buf,
LB_id_t  msgid 
) [virtual]

Implements code::LBInterfaceInfo.

virtual int code::LBInterfaceInfo_glib::read ( void *  buf,
int  buflen,
LB_id_t  msgid 
) [virtual]

Implements code::LBInterfaceInfo.

virtual int code::LBInterfaceInfo_glib::seek ( int  offset,
LB_id_t  from,
LB_info *  info 
) [virtual]

Implements code::LBInterfaceInfo.

virtual int code::LBInterfaceInfo_glib::stat ( LB_status *  status  )  [virtual]

Implements code::LBInterfaceInfo.

virtual int code::LBInterfaceInfo_glib::write ( char *  message,
int  length,
LB_id_t  msgid 
) [virtual]

Implements code::LBInterfaceInfo.


Member Data Documentation

int code::LBInterfaceInfo::id [inherited]

LB library identifier.

DoNothingThreadMutex code::LBInterfaceInfo::lbMutex [inherited]

Mutex to serialize access to LB.

code::URL code::LBInterfaceInfo::name [inherited]

Name of LB.

Has machine name if remote.


Generated on Fri May 4 13:40:12 2012 for WDSS-IIw2 by  doxygen 1.4.7