📄 header.h
字号:
pvHeader BYTE* casted to a VOID*
iHeadLen int
iRedirect int
pvUrl BYTE* casted to VOID*
Return: 1 if success, otherwise 0
=========================================================================*/
int GetHeaderHandle( void** ppHeaderHandle, VOID* pvHeader, int iHeadLen, int iRedirect,
VOID* pvUrl );
/*========================================================================
manageCookies
==========================================================================
Purpose: Retrieves cookies from the list of headers and requests the
database to store these.
Params: pHeaderHandle which is the list of headers,
pbURL, i.e. the request url which cookies are checked against
before storage
Return: -
=========================================================================*/
void manageCookies( void* pHeaderHandle, BYTE* pbURL );
/*========================================================================
createCookieData
==========================================================================
Purpose: Retrieves matching coookies previously searched for in the DB.
The retrieved cookies are encoded according to WSP and put
in *ppbString. The resulting *ppbString is to be used as the
value part of a cookie header.
Params: ppbString is an outparam. ppbString must not be NULL.
*ppbString is a string allocated by this function but its
delete responsibility is passed to the caller upon return.
I.e the caller must delete *ppbString.
If no matching cookies were found, *ppbString will be set to
NULL and 0 will be returned.
Return: The length of the *ppbString.
=========================================================================*/
UINT32 createCookieData( BYTE** ppbString );
/*========================================================================
getAddrBearer
==========================================================================
Purpose: Get the Bearer part from the NETWORKSTRUCT
Params: pNetStruct NETWORKSTRUCT* casted to VOID*
Return: Bearer
=========================================================================*/
unsigned char getAddrBearer( VOID* pNetStruct );
/*========================================================================
getAddrSecAddrFormat
==========================================================================
Purpose: Get the SecondAddressFormat part from the NETWORKSTRUCT
Params: pNetStruct NETWORKSTRUCT* casted to VOID*
iServerSet int 1 (Serverpart), 0 (Clientpart)
Return: SecondAddressFormat
=========================================================================*/
unsigned char getAddrSecAddrFormat( VOID* pNetStruct, int iServerSet );
/*========================================================================
getAddrAddress
==========================================================================
Purpose: Take the Address from the NETWORKSTRUCT and stored it in DeviceAddress
Params: pNetStruct NETWORKSTRUCT* casted to VOID*,
iServerSet Int 1 (Serverpart), 0 (Clientpart)
pAddress DeviceAddress*
Return:
=========================================================================*/
void getAddrAddress( VOID* pNetStruct, int iServerSet, DeviceAddress* pAddress );
/*========================================================================
getProxyAddress
==========================================================================
Purpose: Take the Address from the NETWORKSTRUCT and stored it in pAddress
Params: pNetStruct NETWORKSTRUCT* casted to VOID*,
pAddress BYTE**
iAddressLength UINT8*
Return:
=========================================================================*/
void getProxyAddress( VOID* pNetStruct, BYTE** pAddress, UINT8* iAddressLength );
/*========================================================================
getAddrSecondAddress
==========================================================================
Purpose: Take the Address from the NETWORKSTRUCT and stored it in AuxiliaryAddress
Params: pNetStruct NETWORKSTRUCT* casted to VOID*,
iServerSet Int 1 (Serverpart), 0 (Clientpart)
pSecondAddress AuxiliaryAddress*
Return:
=========================================================================*/
void getAddrSecondAddress( VOID* pNetStruct, int iServerSet,
AuxiliaryAddress* pSecondAddress );
/*========================================================================
getTimerValue
==========================================================================
Purpose: Get the TimeOut part from the NETWORKSTRUCT
Params: pNetStruct NETWORKSTRUCT* casted to VOID*
Return: TimeOut value in 1/10 of a second.
=========================================================================*/
int getTimerValue( VOID* pNetStruct );
/*========================================================================
getStackMode
==========================================================================
Purpose: Get the StackMode part from the NETWORKSTRUCT
Params: pNetStruct NETWORKSTRUCT* casted to VOID*
Return: StackMode
=========================================================================*/
int getStackMode( VOID* pNetStruct );
int getClientPort( VOID* pNetStruct );
/*========================================================================
GetFile
==========================================================================
Purpose: Invokes the adapter function CLNTa_getFile with a URL from
pvRequestStruct and also dealloc the pvRequestStruct
Params: iTID Int
pvRequestStruct pURLREQSTRUCT* casted to VOID**
Return: TRUE if success, otherwise FALSE
=========================================================================*/
int GetFile( int iTID, VOID** pvReqStruct );
/*========================================================================
checkIfImageRequest
==========================================================================
Purpose: Check in the pvReqStruct if the request expect an image in the response.
Params: pvReqStruct URLREQSTRUCT* casted to void*
Return: 1 if an image, otherwise 0
=========================================================================*/
int checkIfImageRequest( void* pvReqStruct );
void* getMyPtrFromMem( DB_ref record, const BYTE* key, BOOL del, UINT8* errorCode, UINT16* uiLength );
int setNetworkParameters( VOID* pvWAEMaStruct, VOID* pvNetwork, VOID* pvUaSettings, int iObjectID, int iChannelRef, int iConnectionOriented );
/*========================================================================
GetRealm
==========================================================================
Purpose: Get the Realm value from the pvHeader.
Params: pvHeader BYTE* casted to void*
iHeaderLength int
Return: Pointer to a Realm
=========================================================================*/
void* GetRealm( void* pvHeader, int iHeadLen );
/*========================================================================
getContentTypeByte
==========================================================================
Purpose:
Params:
Return:
=========================================================================*/
BYTE getContentTypeByte( void* pvHeaderHandle );
/*========================================================================
getNrOfFreeReqstruct
==========================================================================
Purpose: Get the iNrOfFreeRequestProc parameter from WAEMAINOBJECT.
Params: pvWAEMaStruct WAEMAINOBJECT* casted to VOID*
Return: iNrOfFreeRequestProc
=========================================================================*/
int getNrOfFreeReqstruct( VOID* pvWAEMaStruct );
/*========================================================================
InitNrOfFreeTrProc
==========================================================================
Purpose: Set the iNrOfFreeRequestProc parameter in WAEMainObject
Params: pvWAEMainObject pWAEMAINOBJECT casted to a VOID*
iMaxTrProc Int MaxNumberOfRequests
Return:
=========================================================================*/
void InitNrOfFreeTrProc( VOID* pvWAEMainObject, int iMaxTrProc );
/*========================================================================
decNrOfFreeReqstruct
==========================================================================
Purpose: Decrease the iNrOfFreeRequestProc parameter in WAEMainObject
Params: pvWAEMaStruct pWAEMAINOBJECT casted to a VOID*
Return:
=========================================================================*/
void decNrOfFreeReqstruct( VOID* pvWAEMaStruct );
/*========================================================================
incNrOfFreeReqstruct
==========================================================================
Purpose: Increase the iNrOfFreeRequestProc parameter in WAEMainObject
Params: pvWAEMaStruct pWAEMAINOBJECT casted to a VOID*
Return:
=========================================================================*/
void incNrOfFreeReqstruct( VOID* pvWAEMaStruct );
/*========================================================================
getNrOfFreeSession
==========================================================================
Purpose: Get the iNrOfFreeSessionProc parameter from WAEMAINOBJECT.
Params: pvWAEMaStruct WAEMAINOBJECT* casted to VOID*
Return: iNrOfFreeSessionProc
=========================================================================*/
int getNrOfFreeSession( VOID* pvWAEMaStruct );
/*========================================================================
InitNrOfFreeSession
==========================================================================
Purpose: Set the iNrOfFreeSessionProc parameter in WAEMainObject
Params: pvWAEMainObject pWAEMAINOBJECT casted to a VOID*
iMaxSessionProc Int MaxNumberOfSessions
Return:
=========================================================================*/
void InitNrOfFreeSession( VOID* pvWAEMainObject, int iMaxSessionProc );
/*========================================================================
decNrOfFreeSession
==========================================================================
Purpose: Decrease the iNrOfFreeSessionProc parameter in WAEMainObject
Params: pvWAEMaStruct pWAEMAINOBJECT casted to a VOID*
Return:
=========================================================================*/
void decNrOfFreeSession( VOID* pvWAEMaStruct );
/*========================================================================
incNrOfFreeSession
==========================================================================
Purpose: Increase the iNrOfFreeSessionProc parameter in WAEMainObject
Params: pvWAEMaStruct pWAEMAINOBJECT casted to a VOID*
Return:
=========================================================================*/
void incNrOfFreeSession( VOID* pvWAEMaStruct );
/*========================================================================
Functions to handeling PID for SDL-Processes
=========================================================================*/
/*========================================================================
pidList_AddPid
=========================================================================*/
int pidList_AddPid( void* pList, int iId, unsigned long int uiPid );
/*========================================================================
pidList_AddPid_Resend
=========================================================================*/
/*int pidList_AddPid_Resend( void* pList, int iId, unsigned long int uiPid, int iResend );*/
/*========================================================================
pidList_SetSessionID
=========================================================================*/
/*int pidList_SetSessionID( void* pList, int iId );*/
/*========================================================================
pidList_ClearSessionID
=========================================================================*/
/*int pidList_ClearSessionID( void* pList, unsigned long int uiPid );*/
/*========================================================================
pidList_GetPid
=========================================================================*/
unsigned long int pidList_GetPid( void* pList, int iId, int iRemove );
/*========================================================================
pidList_GetPid_Resend
=========================================================================*/
/*unsigned long int pidList_GetPid_Resend( void* pList, int iId );*/
/*========================================================================
pidList_RemovePid
=========================================================================*/
/*int pidList_RemovePid( void* pList, unsigned long int uiPid );*/
/*========================================================================
pidList_GetFirstPid
=========================================================================*/
/*unsigned long int pidList_GetFirstPid( void* pList );*/
/*========================================================================
pidList_GetPidFromElement
=========================================================================*/
/*unsigned long int pidList_GetPidFromElement( void* pList, void** ppListElement );*/
/*========================================================================
pidList_Delete
=========================================================================*/
int pidList_Delete( void** pList );
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -