HP-UX SNAplus2 CPI-C Programmer's Guide (June 2003)

CPI-C Calls
Extract_TP_Name (cmetpn)
Chapter 3 185
Extract_TP_Name (cmetpn)
The Extract_TP_Name call returns the TP name and TP name length of
the invoked TP for a specified conversation.
An application that has used the Specify_Local_TP_Name call to accept
incoming Allocates for more than one TP name, and has subsequently
issued Accept_Conversation or Accept_Incoming to accept an incoming
Allocate, can use this call to determine which TP name was specified on
the incoming Allocate.
Function Call
void cmetpn (
unsigned char CM_PTR conversation_ID,
unsigned char CM_PTR TP_name,
CM_INT32 CM_PTR TP_name_length,
CM_RETURN_CODE CM_PTR return_code
);
Function Call for Java CPI-C
public native void cmetpn (
byte[] conversation_ID,
byte[] TP_name,
CPICLength TP_name_length,
CPICReturnCode return_code
);
Supplied Parameters
The supplied parameter is:
conversation_ID
This is the identifier for the conversation. The value of
this parameter was returned by the
Initialize_Conversation, Initialize_For_Incoming, or
Accept_Conversation call.