![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cXProtocol.h>
Protected Member Functions | |
cXProtocolRx (cXProtocolBase &rBase, cStreamInput *pStreamRx) | |
virtual | ~cXProtocolRx () |
virtual HRESULT | onX_Error (HRESULT hResRet, const cVariant &vVal)=0 |
virtual HRESULT | onXSet_Prop (cXObject *pObj, const cScriptableProp *pProp, const cVariant &vVal) |
virtual HRESULT | onXReq_Invoke (cXObject *pObj, const cScriptableMethod *pMethod, const cVariant &vArgs, OUT cVariant &vValRet) |
virtual HRESULT | onXSet_PropN (UID_t uidLastRx, const ATOMCHAR_t *pszPropName, ATOMCODE_t nPropName, const cVariant &vVal) |
virtual HRESULT | onXReq_InvokeN (UID_t uidLastRx, const ATOMCHAR_t *pszMethodName, ATOMCODE_t nMethodName, const cVariant &vArgs) |
virtual HRESULT | onXSet_File (const FILECHAR_t *pszReqName, size_t dwTotalLen) |
void | InitRx () |
HRESULT | ReadUID () |
HRESULT | on_Error () |
HRESULT | onSet_PropN () |
HRESULT | onReq_InvokeN () |
HRESULT | onSet_File () |
HRESULT | onSet_FileNext () |
cStreamInput & | get_StreamRx () |
virtual HRESULT | ProcessStreamRxMsg ()=0 |
virtual HRESULT | ProcessStreamPacket () |
Protected Attributes | |
cXProtocolBase & | m_rBase |
Input stream. More... | |
cStreamInput * | m_pStreamRx |
Where to RX from. More... | |
SCRIPTINTERFACEID_t | m_bInterfaceIDUnk |
An interface received that I don't understand (yet)! client only. More... | |
XPROTO_t | m_bMsgReading |
We are in the process of reading/dispatching a message. More... | |
XPROTO_t | m_bMsgReadPrev |
Last message i got and understood. for debug. More... | |
int | m_iMsgNumRx |
Count the messages we received. More... | |
UID_t | m_uidLastRx |
Last UID sent from client. ( be careful order of messages does not change!) More... | |
General incoming stream of data from client or server
|
protected |
|
protectedvirtual |
|
inlineprotected |
|
protected |
|
protected |
XPROTO_Error Always get this back as the first response to hello! Rx side of cXProtocolServerTx::Send_Error
|
protected |
XPROTO_InvokeN|XPROTO_Request Server or Client is calling some method (by name) on some object here. may just be an event from client to server. UserClick,etc
|
protected |
XPROTO_File i am getting a file. I probably requested it. is it OK to get this file ?
|
protected |
XPROTO_File|XPROTO_NextChunk Get/Receive the next part of the file.
|
protected |
XPROTO_PropN I got a Prop from the connect.
|
protectedpure virtual |
Implemented in GrayLib::cXProtocolServerStream, and GrayLib::cXProtocolClient.
|
protectedvirtual |
XPROTO_Invoke|XPROTO_Request Server or Client is calling some method on my pObj. override this virtual
|
protectedvirtual |
XPROTO_InvokeN|XPROTO_Request Server or Client is calling some method on some object here. resolve this. nPropName or pszMethodName will be set.
|
protectedvirtual |
XPROTO_File I am getting a file or part of a file. Override this at a higher level to decide if this is OK. Translate the req name to the local name / path.
|
protectedvirtual |
XPROTO_Prop someone sent me a single prop. Do something with the data i got. override this virtual.
|
protectedvirtual |
XPROTO_PropN client is setting a prop on the server by name or hashcode. or server response to client request for a property
|
protectedvirtual |
Process get_StreamRx() for one single message.
Reimplemented in GrayLib::cXProtocolServerStream.
|
protectedpure virtual |
Implemented in GrayLib::cXProtocolServerStream, and GrayLib::cXProtocolClient.
|
protected |
|
protected |
An interface received that I don't understand (yet)! client only.
|
protected |
We are in the process of reading/dispatching a message.
|
protected |
Last message i got and understood. for debug.
|
protected |
Count the messages we received.
|
protected |
Where to RX from.
|
protected |
Input stream.
My parent. dumb pointer.
|
protected |
Last UID sent from client. ( be careful order of messages does not change!)