PinContext Class Reference

List of all members.

Public Member Functions

 ~PinContext ()
PinPoidOwner getUserId () const
PinPoidOwner getSession () const
void pcpSend (PinOp opNum, PinOpFlags opflags, PinOpFlags pcp_flags, PinFlistBase &flist, int32 how)
void pcpReceive (PinFlistOwner &flist, PinPoidOwner &user)
void op (PinOp opnum, PinOpFlags flags, const PinFlistBase &input, PinFlistOwner &output)
void opref (PinOp opnum, PinOpFlags flags, const PinFlistBase &input, PinFlistOwner &output)
void op (PinOp opnum, PinOpFlags flags, const PinFlistBase &input, PinFlistOwner &output, const char *filename, int32 line_no)
void opref (PinOp opnum, PinOpFlags flags, const PinFlistBase &input, PinFlistOwner &output, const char *filename, int32 line_no)
void close (int how=0)
void reconnect (char *passwd)
PinBool isNull () const
const pcm_context_tget () const
pcm_context_tget () const
pcm_context_tget ()
pcm_context_trelease ()
void grab (pcm_context_t *pointee, PinBool owns)
void takeFrom (PinContext &)
void copyFrom (const PinContext &)
 PinContext ()

Static Public Member Functions

static PinContextOwner create ()
static PinContextOwner createFromFileDescriptor (int fd, PinPoidBase &user)
static PinContextOwner create (const PinFlistBase &inFlist)
static PinContextObserver createAsObserved (pcm_context_t *ctxp)
static PinContextOwner createAsOwned (pcm_context_t *ctxp)

Private Member Functions

void operator= (const PinContext &)
void _op (PinOp opnum, PinOpFlags flags, const pin_flist_t *in_flistp, PinFlistOwner &output, bool use_opref=false, const char *filename=__FILE__, int32 line_no=__LINE__)

Private Attributes

PinBool ownsM
pcm_context_tctxpM


Detailed Description

Class to represent the portal context for executing opcodes

Constructor & Destructor Documentation

PinContext::~PinContext (  ) 

PinContext::PinContext (  ) 


Member Function Documentation

PinContextOwner PinContext::create (  )  [static]

PinContextOwner PinContext::createFromFileDescriptor ( int  fd,
PinPoidBase user 
) [static]

Create a context from a given file descriptor

Parameters:
fd the file descriptor to use
user the user poid for the connection
Returns:
PinContextOwner

PinContextOwner PinContext::create ( const PinFlistBase inFlist  )  [static]

PinContextObserver PinContext::createAsObserved ( pcm_context_t ctxp  )  [static]

PinContextOwner PinContext::createAsOwned ( pcm_context_t ctxp  )  [static]

PinPoidOwner PinContext::getUserId (  )  const

PinPoidOwner PinContext::getSession (  )  const

void PinContext::pcpSend ( PinOp  opNum,
PinOpFlags  opflags,
PinOpFlags  pcp_flags,
PinFlistBase flist,
int32  how 
)

Call the internal pcp send routine, if you wish to do your own connection management.

Parameters:
opNum the opcode to call
opflags the opcode flags
pcp_flags the pcp flags
flist the flist to send
how the method to send with; either PCPXDR_BLOCKING or PCPXDR_NON_BLOCKING

void PinContext::pcpReceive ( PinFlistOwner flist,
PinPoidOwner user 
)

Call the internal pcp receive routine, if you wish to do your own connection management.

Parameters:
flist the flist returned from the call
user the user object returned from the call

void PinContext::op ( PinOp  opnum,
PinOpFlags  flags,
const PinFlistBase input,
PinFlistOwner output 
)

void PinContext::opref ( PinOp  opnum,
PinOpFlags  flags,
const PinFlistBase input,
PinFlistOwner output 
)

void PinContext::op ( PinOp  opnum,
PinOpFlags  flags,
const PinFlistBase input,
PinFlistOwner output,
const char *  filename,
int32  line_no 
)

void PinContext::opref ( PinOp  opnum,
PinOpFlags  flags,
const PinFlistBase input,
PinFlistOwner output,
const char *  filename,
int32  line_no 
)

void PinContext::close ( int  how = 0  ) 

void PinContext::reconnect ( char *  passwd  ) 

PinBool PinContext::isNull (  )  const

pcm_context_t * PinContext::get (  )  const

pcm_context_t* PinContext::get (  )  const

pcm_context_t * PinContext::get (  ) 

pcm_context_t * PinContext::release (  ) 

void PinContext::grab ( pcm_context_t pointee,
PinBool  owns 
)

void PinContext::takeFrom ( PinContext other  ) 

void PinContext::copyFrom ( const PinContext other  ) 

void PinContext::operator= ( const PinContext  )  [private]

void PinContext::_op ( PinOp  opnum,
PinOpFlags  flags,
const pin_flist_t in_flistp,
PinFlistOwner output,
bool  use_opref = false,
const char *  filename = __FILE__,
int32  line_no = __LINE__ 
) [private]


Member Data Documentation


Copyright 2017, 2023, Oracle and/or its affiliates.