Programmers Reference - CPacketRequest (1)
class CPacketRequest : public CDataRequest
#include "Database.h"
class CPacketRequest : public CDataRequest { friend class CPacketServer; public: CPacketRequest(CHandle aHandle = CHandle(), CAddress* aAddress = NULL); virtual ~CPacketRequest(); public: virtual CString GetLibrary(); virtual CString GetDataServer(); public: // Some operators for handling the data. inline CDataRequest*& operator[](UINT index); public: inline BOOLEAN IsEmpty(); inline CDataRequest* RemoveLast(); // Remove and return last element in request list. Return NULL, if request list empty. inline void AddRequest(CDataRequest* aRequest); protected: void SortForFrontend(CcsDatabase * const database); public: DECLARE_CONSYS_SERIAL(CPacketRequest); #ifdef _DEBUG public: virtual void Dump( CDumpContext& dc ) const; virtual void AssertValid() const; #endif };
The packet request is used by the client programs when they want more than one parameter at a time. The packet request manages a list of CDataRequest. There is no restriction on which kind of requests that the packet request may contain.
Becouse the packet server (CPacketServer) must have some way of managing the destination of the data comming from the client, and to the frontend devices, the handles of all requests in the request structure must be unique. For further information on the use of handles, se Data Requests.
References:
Last Modified 10 January 2019