Logo Search packages:      
Sourcecode: maxdb-7.5.00 version File versions

ven905.c File Reference


Detailed Description

Client RunTime: local dbm communication class.

Author:
DanielD

Definition in file ven905.c.

#include <stddef.h>
#include <sys/types.h>
#include <sys/wait.h>
#include "gen00.h"
#include "heo00.h"
#include "gsp09.h"
#include "hsp77.h"
#include "gen003.h"
#include "geo001.h"
#include "geo57.h"
#include "gen42.h"
#include "hen40.h"
#include "RunTime/RTE_IniFileHandling.h"
#include "SAPDBCommon/SAPDB_Names.h"
#include "RunTime/RTE_saveUNIXcalls.h"

Go to the source code of this file.

Classes

struct  RTEReqRespDataT

Defines

#define CLOSE_PIPE_M(handle)
#define dumpHex(bufParam, len)
#define dumpHexWithComment(comment, bufParam, len)
#define ERROR_TRACE(args)
#define HEADER_OVERHEAD_C   sizeof (rte_header)
#define MF__   MOD__"sqlxusername"
#define MF__   MOD__"sqlx2connectp"
#define MF__   MOD__"sqlx2connectc"
#define MF__   MOD__"sqlxconnectp"
#define MF__   MOD__"sqlxconnectc"
#define MF__   MOD__"dumpLocalManager_MF"
#define MF__   MOD__"cancelLocalManager_MF"
#define MF__   MOD__"receiveFromLocalManager_MF"
#define MF__   MOD__"replyAvailableFromLocalManager_MF"
#define MF__   MOD__"requestToLocalManager_MF"
#define MF__   MOD__"requestToLocalManager_MF"
#define MF__   MOD__"releaseLocalManager_MF"
#define MF__   MOD__"clearLocalManagerConnection_MF"
#define MOD__   "ven905.c:"
#define OSTYPE_LOCAL_OS_EN905   OSTYPE_UNIX_OS_EO42
#define OSTYPE_UNIX_OS_EO42   2
#define OSTYPE_WIN32_EO42   1
#define REQ_RESP_TYPE_BUFFER_SIZE_REQUEST   33
#define REQ_RESP_TYPE_BUFFER_SIZE_RESPONSE   34
#define REQ_RESP_TYPE_CANCEL_REQUEST   125
#define REQ_RESP_TYPE_DBMSERVER_AUTOLOGON_REQUEST   131
#define REQ_RESP_TYPE_DBMSERVER_AUTOLOGON_RESPONSE   132
#define REQ_RESP_TYPE_DISCONNECT_REQUEST   127
#define REQ_RESP_TYPE_DISCONNECT_RESPONSE   128
#define REQ_RESP_TYPE_EVENTLIST   2
#define REQ_RESP_TYPE_RAW_DATA   1
#define REQ_RESP_TYPE_SET_DBMSERVER_PARAMS_REQUEST   129
#define REQ_RESP_TYPE_SET_DBMSERVER_PARAMS_RESPONSE   130
#define REQ_RESP_TYPE_SET_TRANSFER_BUFFER_REQUEST   35
#define REQ_RESP_TYPE_SET_TRANSFER_BUFFER_RESPONSE   36
#define REQUEST_VERSION_EN905   0
#define VARPART_VAL_DBROOT_EO44   0x72
#define VARPART_VAL_MAX_TRANSFER_BUFFER_SIZE_EO44   0x4D
#define VARPART_VAL_MIN_RESPONSE_PACKET_SIZE_EO44   0x55
#define VARPART_VAL_SERVERDB_EO44   0x65
#define VARPART_VAL_TRANSFER_BUFFER_SIZE_EO44   0x54

Functions

static int addRequestParameter (unsigned char *varpart, int currentLength, int typeCode, const void *data, int dataLen)
static int allocatePacket_MF (connection_info *cip, tsp00_ErrTextc pErrText)
static void autoLogon_MF (connection_info *cip)
static int basicAllocatePacket_MF (connection_info *cip, int packetSize, tsp00_ErrTextc pErrText)
static int cancelLocalManager_MF (connection_info *cip, tsp00_ErrTextc pErrText)
static int clearLocalManagerConnection_MF (connection_info *cip, tsp00_ErrTextc pErrText)
static void closePipes_MF (struct pipe_connection_info *pipes)
static char * copyConnectParameter_MF (char *writePosition, int valueTag, const char *value)
static bool createPipe_MF (pipe_handle_t *readHandle, pipe_handle_t *writeHandle, const char *comment, tsp00_ErrTextc pErrText)
static int createPipes_MF (struct pipe_connection_info *parentPipes, struct pipe_connection_info *childPipes, tsp00_ErrTextc pErrText)
static int dumpLocalManager_MF (connection_info *cip, tsp00_ErrTextc pErrText)
static int exchangeConnect_MF (connection_info *cip, tsp00_Pathc dbrootBuf, tsp00_ErrTextc pErrText)
static void fillHeader_MF (rte_header *header, int varpartLen)
static void fillRequestHeader_MF (RTEReqRespDataT *header, int varpartLen)
static int findReplyParameter (unsigned char *varpart, int varpartLen, int typeCode, void *data, int dataSize)
static void findVarpart_MF (void *replyData, unsigned char **varpart, int *varpartLen)
static void freePackets_MF (connection_info *cip, int count)
static void initHeader_MF (rte_header *header)
static void initPipes_MF (struct pipe_connection_info *pipes)
static int readFromPipe_MF (pipe_handle_t pipeHandle, void *target, int bytesRequested)
static int receiveFromLocalManager_MF (connection_info *cip, tsp00_ErrTextc pErrText)
static int releaseLocalManager_MF (connection_info *cip, tsp00_ErrTextc pErrText)
static int replyAvailableFromLocalManager_MF (connection_info *cip, tsp00_ErrTextc pErrText)
static int requestReceive_MF (connection_info *cip, tsp00_ErrTextc pErrText)
static int requestToLocalManager_MF (connection_info *cip, tsp00_ErrTextc pErrText)
void sql03_xconnect (char *servernode, tsp00_DbNamec serverdb, char *dbroot, char *serverpgm, tsp00_Int4 *reference, tsp00_Int4 *sql_packet_size, void **sql_packet_list, connection_VMT *vmt, tsp00_ErrTextc perrtext, tsp01_CommErr *returncode)
void sqlx2connectc (tsp00_TaskId pid, char *servernode, char *serverdb, char *dbroot, char *serverpgm, tsp00_Int4 *reference, tsp00_Int4 *sql_packet_size, void **sql_packet, tsp00_ErrTextc pErrText, tsp01_CommErr *returncode)
void sqlx2connectp (tsp00_TaskId pid, tsp00_NodeId servernode, tsp00_DbName serverdb, char *dbroot, char *serverpgm, tsp00_Int4 *reference, tsp00_Int4 *sql_packet_size, void **sql_packet, tsp00_ErrText errtext, tsp01_CommErr *returncode)
void sqlxconnectc (tsp00_TaskId pid, char *servernode, tsp00_DbNamec serverdb, char *dbroot, tsp00_Int4 *reference, tsp00_Int4 *sql_packet_size, void **sql_packet, char *pErrText, tsp01_CommErr *returncode)
void sqlxconnectp (tsp00_TaskId pid, tsp00_NodeId servernode, tsp00_DbName serverdb, char *dbroot, tsp00_Int4 *reference, tsp00_Int4 *sql_packet_size, void **sql_packet, tsp00_ErrText errtext, tsp01_CommErr *returncode)
const char * sqlxusername ()
static int startLocalManager_MF (connection_info *cip, tsp00_ErrTextc pErrText)
static void terminateChildProcess_MF (connection_info *cip)
static int writeToPipe_MF (pipe_handle_t pipeHandle, const void *data, int dataLen, tsp00_ErrTextc pErrText)

Variables

static connection_VMT pipe_class_VMT
char * sql01_username


Generated by  Doxygen 1.6.0   Back to index