DABC (Data Acquisition Backbone Core)  2.9.9
Functions | Variables
rawProcn.c File Reference
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <sys/stat.h>
#include <ctype.h>
#include <stdlib.h>
#include <unistd.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include "rawapitd.h"
#include "rawapitd-gsin.h"
#include "rawcommn.h"
#include "rawdefn.h"
#include "rawclin.h"
#include "rawentn.h"
#include "rawapplcli.h"

Go to the source code of this file.

Functions

int rawAddStrings (char *pcMsg1, int iMaxLength1, char *pcMsg2, int iMaxLength2, int iErrno, char *pcMsgE, int iMaxLengthE)
 
int rawCheckClientFile (char *pcFullFile, char *pcFile, char *pcTape)
 
int rawDelFile (int iSocket, srawComm *psComm)
 
int rawDelList (int iSocketMaster, int iDataMover, srawDataMoverAttr *pDataMover0, srawComm *psComm, char **pcFileList, char **pcObjList)
 
int rawGetFileSize (char *pcFile, unsigned long *piSize, unsigned int *piRecl)
 
char * rawGetFSpName (char *pcUser)
 
char * rawGetHLName (char *pcPath)
 
int rawGetLLName (char *pcFile, const char *pcDelimiter, char *pcObject)
 
char * rawGetPathName (char *pcNamehl)
 
int rawQueryFile (int iSocket, int iAltMaster, srawComm *pCommBuf, void **pQueryBuf)
 
int rawRecvError (int iSocket, int iLen, char *pcMsg)
 
int rawRecvHead (int iSocket, char *pcBuf)
 
int rawRecvHeadC (int iSocket, char *pcBuf, int iIdentReq, int iStatusReq, char *pcMsg)
 
int rawRecvRequest (int iSocket, int *piSeekMode, int *piOffset, int *piBufferSize)
 
int rawRecvStatus (int iSocket, srawStatus *psStatus)
 
int rawSendRequest (int iSocket, int iSeekMode, int iOffset, int iBufferSize)
 
int rawSendStatus (int iSocket, int iStatus, char *pcMsg)
 
int rawTestFileName (char *pcFile)
 

Variables

static char cNamefs [MAX_OBJ_FS] = ""
 
static char cNamehl [MAX_OBJ_HL] = ""
 
static char cPath [MAX_FULL_FILE] = ""
 
FILE * fLogFile
 
static int ichar = sizeof(char)
 
static int iObjAttr = sizeof(srawObjAttr)
 
static char * pcNull = (char *) ""
 

Function Documentation

◆ rawAddStrings()

int rawAddStrings ( char *  pcMsg1,
int  iMaxLength1,
char *  pcMsg2,
int  iMaxLength2,
int  iErrno,
char *  pcMsgE,
int  iMaxLengthE 
)

Definition at line 198 of file rawProcn.c.

◆ rawCheckClientFile()

int rawCheckClientFile ( char *  pcFullFile,
char *  pcFile,
char *  pcTape 
)

Definition at line 364 of file rawProcn.c.

◆ rawDelFile()

int rawDelFile ( int  iSocket,
srawComm psComm 
)

Definition at line 613 of file rawProcn.c.

◆ rawDelList()

int rawDelList ( int  iSocketMaster,
int  iDataMover,
srawDataMoverAttr pDataMover0,
srawComm psComm,
char **  pcFileList,
char **  pcObjList 
)

Definition at line 724 of file rawProcn.c.

◆ rawGetFSpName()

char* rawGetFSpName ( char *  pcUser)

Definition at line 971 of file rawProcn.c.

◆ rawGetHLName()

char* rawGetHLName ( char *  pcPath)

Definition at line 1028 of file rawProcn.c.

◆ rawGetLLName()

int rawGetLLName ( char *  pcFile,
const char *  pcDelimiter,
char *  pcObject 
)

Definition at line 1107 of file rawProcn.c.

◆ rawGetFileSize()

int rawGetFileSize ( char *  pcFile,
unsigned long *  piSize,
unsigned int *  piRecl 
)

Definition at line 1158 of file rawProcn.c.

◆ rawGetPathName()

char* rawGetPathName ( char *  pcNamehl)

Definition at line 1274 of file rawProcn.c.

◆ rawQueryFile()

int rawQueryFile ( int  iSocket,
int  iAltMaster,
srawComm pCommBuf,
void **  pQueryBuf 
)

Definition at line 1319 of file rawProcn.c.

◆ rawRecvError()

int rawRecvError ( int  iSocket,
int  iLen,
char *  pcMsg 
)

Definition at line 1748 of file rawProcn.c.

◆ rawRecvHead()

int rawRecvHead ( int  iSocket,
char *  pcBuf 
)

Definition at line 1860 of file rawProcn.c.

◆ rawRecvHeadC()

int rawRecvHeadC ( int  iSocket,
char *  pcBuf,
int  iIdentReq,
int  iStatusReq,
char *  pcMsg 
)

Definition at line 1964 of file rawProcn.c.

◆ rawRecvRequest()

int rawRecvRequest ( int  iSocket,
int *  piSeekMode,
int *  piOffset,
int *  piBufferSize 
)

Definition at line 2164 of file rawProcn.c.

◆ rawRecvStatus()

int rawRecvStatus ( int  iSocket,
srawStatus psStatus 
)

Definition at line 2373 of file rawProcn.c.

◆ rawSendRequest()

int rawSendRequest ( int  iSocket,
int  iSeekMode,
int  iOffset,
int  iBufferSize 
)

Definition at line 2515 of file rawProcn.c.

◆ rawSendStatus()

int rawSendStatus ( int  iSocket,
int  iStatus,
char *  pcMsg 
)

Definition at line 2585 of file rawProcn.c.

◆ rawTestFileName()

int rawTestFileName ( char *  pcFile)

Definition at line 2659 of file rawProcn.c.

Variable Documentation

◆ fLogFile

FILE* fLogFile
extern

Definition at line 217 of file rawapin.c.

◆ cPath

char cPath[MAX_FULL_FILE] = ""
static

Definition at line 182 of file rawProcn.c.

◆ cNamefs

char cNamefs[MAX_OBJ_FS] = ""
static

Definition at line 183 of file rawProcn.c.

◆ cNamehl

char cNamehl[MAX_OBJ_HL] = ""
static

Definition at line 184 of file rawProcn.c.

◆ pcNull

char* pcNull = (char *) ""
static

Definition at line 185 of file rawProcn.c.

◆ iObjAttr

int iObjAttr = sizeof(srawObjAttr)
static

Definition at line 188 of file rawProcn.c.

◆ ichar

int ichar = sizeof(char)
static

Definition at line 189 of file rawProcn.c.