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_t * | get () const |
pcm_context_t * | get () const |
pcm_context_t * | get () |
pcm_context_t * | release () |
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_t * | ctxpM |
Detailed Description
Class to represent the portal context for executing opcodes
Constructor & Destructor Documentation
PinContext::~PinContext |
( |
|
) |
|
PinContext::PinContext |
( |
|
) |
|
Member Function Documentation
Create a context from a given file descriptor
- Parameters:
-
| fd | the file descriptor to use |
| user | the user poid for the connection |
- Returns:
- PinContextOwner
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 |
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::close |
( |
int |
how = 0 |
) |
|
void PinContext::reconnect |
( |
char * |
passwd |
) |
|
PinBool PinContext::isNull |
( |
|
) |
const |
void PinContext::copyFrom |
( |
const PinContext & |
other |
) |
|
void PinContext::operator= |
( |
const PinContext & |
|
) |
[private] |
Member Data Documentation