- First implementation of Hdbqueue
- First implementation of new object model for SICS
This commit is contained in:
17
conman.c
17
conman.c
@ -68,7 +68,7 @@
|
||||
#include "commandlog.h"
|
||||
#include "stptok.h"
|
||||
#include "sicshipadaba.h"
|
||||
|
||||
#include "protocol.h"
|
||||
/*
|
||||
#define UUDEB 1
|
||||
define UUDEB , for buffer writing for checking encoding */
|
||||
@ -79,7 +79,7 @@ extern pServer pServ;
|
||||
|
||||
|
||||
/*------ Max Size of Command Stack */
|
||||
#define MAXSTACK 100
|
||||
#define MAXSTACK 1024
|
||||
/*---------- Magic ID Header */
|
||||
#define CONMAGIC 26051958
|
||||
/*-------------------------------------------------------------------------
|
||||
@ -1149,8 +1149,9 @@ pDynString SCEndBuffering(SConnection *pCon)
|
||||
int SCWriteZipped(SConnection *self, char *pName, void *pData, int iDataLen)
|
||||
{
|
||||
char outBuf[65546], *pBuf = NULL, noutBuf[ZIPBUF], *pHeader = NULL;
|
||||
int compressedLength, iRet, iRet2, iCount;
|
||||
int compressedLength, iRet, iRet2, iCount, protocolID;
|
||||
z_stream compStream;
|
||||
commandContext cc;
|
||||
|
||||
/* check for a valid connection */
|
||||
if(!VerifyConnection(self))
|
||||
@ -1225,7 +1226,15 @@ pDynString SCEndBuffering(SConnection *pCon)
|
||||
|
||||
/* write header line */
|
||||
memset(outBuf,0,65536);
|
||||
sprintf(outBuf,"SICSBIN ZIP %s %d\r\n",pName,compressedLength);
|
||||
|
||||
protocolID = GetProtocolID(self);
|
||||
if(protocolID == 5){
|
||||
cc = SCGetContext(self);
|
||||
sprintf(outBuf,"SICSBIN ZIP %s %d %d\r\n",pName,
|
||||
compressedLength, cc.transID);
|
||||
} else {
|
||||
sprintf(outBuf,"SICSBIN ZIP %s %d \r\n",pName,compressedLength);
|
||||
}
|
||||
pHeader = strdup(outBuf);
|
||||
if(pHeader == NULL)
|
||||
{
|
||||
|
Reference in New Issue
Block a user