|
| | cXProtocolServerStream (cXProtocolFactory *pProtocolFactory, IUnkObject *pServerConnection, cStreamInput *pStreamInp, cStreamOutput *pStreamOut) |
| |
| virtual | ~cXProtocolServerStream () |
| |
| HASHCODE_t | get_HashCode () const noexcept |
| |
| virtual bool | isClientSide () const override |
| |
| | STDMETHOD_ (cString, get_Name)() const override |
| |
| | STDMETHOD_ (PLEVEL_TYPE, get_PrivLevel)() const override |
| |
| | STDMETHOD_ (bool, CanBeDetectedBy)(const IAuthUser *pViewer) const override |
| |
| virtual HRESULT | DisposeThis () override |
| |
| virtual HRESULT | ProcessStreamPacket () override |
| |
| virtual HRESULT | WriteString (const char *pszStr) override |
| |
| virtual HRESULT | OnTickStream () override |
| |
| | cProtocolStream (IProtocolFactory *pProtocolFactory, IUnkObject *pServerConnection, cStreamInput *pStreamInp, cStreamOutput *pStreamOut) |
| |
| virtual | ~cProtocolStream () |
| |
| HASHCODE_t | get_HashCode () const noexcept |
| |
| | STDMETHOD_ (HASHCODE_t, get_HashCodeX)() const noexcept override |
| |
| | STDMETHOD_ (cString, get_Name)() const override |
| |
| | STDMETHOD_ (cStringA, get_SymName)() const override |
| |
| bool | isConnected () const |
| |
| cStreamInput * | get_StreamInp () const |
| |
| cStreamOutput * | get_StreamOut () const |
| |
| virtual size_t | get_ProtocolMaxMessageSize () const |
| |
| | cXProtocolBase (cXProtocolDataMgr *pProtocolDataMgr) |
| |
| virtual | ~cXProtocolBase () |
| |
| cXProtocolDataMgr * | get_DataMgr () const |
| |
| | cXProtocolServerTx (cXProtocolBase &rBase, cStreamOutput *pOut) |
| |
| virtual | ~cXProtocolServerTx () |
| |
| HRESULT | Send_Interfaces (cXObject *pObj) |
| |
| HRESULT | Send_InterfaceDef (const cScriptableInterfaceDef *pInterfaceDef) |
| |
| HRESULT | Send_InterfaceDef (SCRIPTINTERFACEID_t bInterfaceID) |
| |
| HRESULT | Send_InterfaceDefs (cXObject *pObj) |
| |
| HRESULT | Send_InterfaceDefs (UID_t uid) |
| |
| HRESULT | Send_TagDef (cAtomRef atomref) |
| |
| HRESULT | Send_PropsI (cXObject *pObj, const cScriptableInterfaceDef *pInterfaceDef) |
| |
| HRESULT | Send_Props (cXObject *pObj, const cScriptableInterfaceDef *pInterfaceDef) |
| |
| HRESULT | Send_Props (cXObject *pObj, SCRIPTINTERFACEID_t bInterfaceID) |
| |
| HRESULT | Send_Prop (UID_t uid, SCRIPTINTERFACEID_t bInterfaceID, SCRIPTPROPID_t bPropIndex, const cVariant &vVal) |
| |
| HRESULT | Send_Prop (cXObject *pObj, const cScriptableProp *pProp, const cVariant &vVal) |
| |
| HRESULT | Send_PropGet (cXObject *pObj, const cScriptableProp *pProp) |
| |
| HRESULT | Send_InvokeResponse (UID_t uid, SCRIPTINTERFACEID_t bInterfaceID, SCRIPTPROPID_t bMethodIndex, const cVariant &vValRet) |
| |
| HRESULT | Send_InvokeResponse (cXObject *pObj, const cScriptableMethod *pMethod, const cVariant &vValRet) |
| |
| HRESULT | Send_Tags (cXObject *pObj, bool bSendIfEmpty) |
| |
| HRESULT | Send_InvokeResponseV (const cVariant &vValRet) |
| |
| | cStreamOutput () noexcept |
| |
| virtual | ~cStreamOutput () |
| |
| virtual HRESULT | WriteX (const void *pData, size_t nDataSize) |
| |
| HRESULT | WriteT (const void *pVal, size_t nDataSize) |
| |
| template<typename TYPE > |
| HRESULT | WriteT (TYPE val) |
| |
| HRESULT | WriteSize (size_t nSize) |
| |
| HRESULT | WriteHashCode (HASHCODE_t nHashCode) |
| |
| HRESULT | WriteN (const void *pBuffer, size_t nSize) |
| |
| template<typename _CH > |
| HRESULT | WriteStringN (const _CH *pszStr) |
| |
| template<typename _CH > |
| HRESULT | WriteCharRepeat (_CH nChar, int nCount=1) |
| |
| virtual HRESULT | WriteString (const wchar_t *pszStr) |
| |
| StrLen_t | VPrintf (const char *pszFormat, va_list args) |
| |
| StrLen_t | VPrintf (const wchar_t *pszFormat, va_list args) |
| |
| StrLen_t _cdecl | Printf (const char *pszFormat,...) |
| |
| StrLen_t _cdecl | Printf (const wchar_t *pszFormat,...) |
| |
| HRESULT | WriteStream (cStreamInput &sInp, STREAM_POS_t nSizeMax=k_FILE_BLOCK_SIZE, IStreamProgressCallback *pProgress=nullptr, TIMESYSD_t nTimeout=0) |
| | Copy cStreamInput to this stream. More...
|
| |
| virtual HRESULT | FlushX () |
| |
| virtual | ~cStreamBase () |
| |
| virtual STREAM_SEEKRET_t | Seek (STREAM_OFFSET_t iOffset, SEEK_ORIGIN_TYPE eSeekOrigin=SEEK_Set) |
| |
| void | SeekToBegin () |
| |
| STREAM_POS_t | SeekToEnd () |
| |
| virtual STREAM_POS_t | GetPosition () const |
| |
| virtual STREAM_POS_t | GetLength () const |
| |
|
| HRESULT | onReq_Error () |
| |
| HRESULT | onReq_Interfaces () |
| | Request a list of cXObject definitions. More...
|
| |
| HRESULT | onReq_InterfaceDef () |
| | Request the interface definition information from the server. More...
|
| |
| HRESULT | onReq_Prop () |
| | Request prop. More...
|
| |
| HRESULT | onReq_Props () |
| | Request props. More...
|
| |
| HRESULT | onReq_Invoke () |
| | Client Requests a method invocation. More...
|
| |
| HRESULT | onReq_Tags () |
| |
| HRESULT | onReq_TagDef () |
| |
| HRESULT | onReq_File () |
| |
| virtual HRESULT | onReq_File (const FILECHAR_t *pszReqName, size_t nFilePos) |
| |
| HRESULT | onReq_Ping () |
| |
| virtual HRESULT | onX_Error (HRESULT hResRet, const cVariant &vVal) override |
| |
| HRESULT | onSet_Prop () |
| | Client wants to set a prop on some object. More...
|
| |
| HRESULT | onSet_Tag () |
| | Client wants to set a tag on some object. More...
|
| |
| HRESULT | onSet_TagDef () |
| |
| HRESULT | onSet_File () |
| |
| virtual HRESULT | ProcessStreamRxMsg () override |
| |
| | cXProtocolRx (cXProtocolBase &rBase, cStreamInput *pStreamRx) |
| |
| virtual | ~cXProtocolRx () |
| |
| 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 () |
| |
| void | InitTx () |
| |
| HRESULT | Send_MsgPropName (const ATOMCHAR_t *pszPropName) |
| |
| cStreamOutput & | get_StreamTx () const |
| |
| | cXProtocolTx (cXProtocolBase &rBase, cStreamOutput *pStreamTx) |
| |
| virtual | ~cXProtocolTx () |
| |
| bool | IsTxMsgBuilding () const |
| |
| HRESULT | Send_MsgHeader (XPROTO_t bMsg) |
| |
| HRESULT | Send_MsgHeaderUID (XPROTO_t bMsg, UID_t uid) |
| |
| void | Send_MsgEnd () |
| |
| HRESULT | Send_Error (HRESULT hResRet, const cVariant &vVal) |
| |
| HRESULT | Send_PropN (UID_t uid, const ATOMCHAR_t *pszPropName, const cVariant &vVal) |
| |
| HRESULT | Send_PropN (cXObject *pObj, const ATOMCHAR_t *pszPropName, const cVariant &vValRet) |
| |
| HRESULT | Send_PropN (cXObject *pObj, const cScriptableProp *pProp, const cVariant &vValRet) |
| |
| HRESULT | Request_InvokeN (UID_t uid, const ATOMCHAR_t *pszPropName, const cVariant &vArgs) |
| |
| HRESULT | Request_InvokeN (UID_t uid, const ATOMCHAR_t *pszPropName) |
| |
| HRESULT | Request_InvokeN (cXObject *pObj, const ATOMCHAR_t *pszPropName, const cVariant &vArgs) |
| |
| HRESULT | Request_InvokeN (cXObject *pObj, const ATOMCHAR_t *pszPropName) |
| |
| HRESULT | Request_InvokeN (cXObject *pObj, const cScriptableMethod *pMethod, const cVariant &vArgs) |
| |
| HRESULT | Send_FileChecked (const FILECHAR_t *pszSrcPath, const FILECHAR_t *pszDestName) |
| |
| HRESULT | Send_File (const FILECHAR_t *pszSrcPath, const FILECHAR_t *pszDestName, FILE_SIZE_t nOffsetStart, FILE_SIZE_t nSize) |
| |
| HRESULT | Send_FileNext () |
| |
I am the server side of the XProtocol connection. I have the information the client wants. This is a servers representation of a single connection to a client.
- Note
- Authentication and encryption are outside the scope of this class. Server always gets a XPROTO_Error(S_OK) first as hello. cStreamOutput = for console output for cScriptContext.