/* ** Name: WSMRequestActSession() - create an active session ** ** Description: ** ** Inputs: ** char* : query text (name of the html file) ** char* : host (http server which requests that file) ** ** Outputs: ** ACT_PSESSION* : active session ** ** Returns: ** GSTATUS : GSTAT_OK ** ** Exceptions: ** None ** ** Side Effects: ** None ** ** History: ** 03-Jul-98 (fanra01) ** Rename wts_sess_attach to act_sess_attach. ** 28-Apr-2000 (fanra01) ** Add secure flag and scheme string to WSMRequestActSession. ** Also use i4 instead of nats. */ GSTATUS WSMRequestActSession( u_i4 clientType, char* query, char* secure, char* scheme, char* host, char* port, USR_PSESSION user_session, ACT_PSESSION *act_session) { GSTATUS err = GSTAT_OK; WSF_PVAR var = NULL; ACT_PSESSION session = NULL; u_i4 length; u_i4 i; err = G_ME_REQ_MEM(0, session, ACT_SESSION, 1); if (err == GSTAT_OK) { session->mem_tag = MEgettag(); if (err == GSTAT_OK) { err = G_ME_REQ_MEM(session->mem_tag, session->name, char, NUM_MAX_ADD_STR); if (err == GSTAT_OK) CVptrax( (PTR)session, session->name ); }
STATUS MOptrxout( STATUS errstat, PTR ptr, i4 destlen, char *dest ) { char buf[ CV_DEC_PTR_SIZE + 1 ]; CVptrax( ptr, buf ); return( MOstrout( errstat, buf, destlen, dest ) ); }