urp connect update git-svn-id: svn://10.0.0.236/trunk@96522 18797224-902f-48f8-a5cc-f745e15eee43
65 lines
1.8 KiB
C++
65 lines
1.8 KiB
C++
#ifndef URP_MANGER
|
|
#define URP_MANGER
|
|
|
|
#include "nsIInterfaceInfo.h"
|
|
#include "xptinfo.h"
|
|
#include "bcDefs.h"
|
|
#include "urpTransport.h"
|
|
#include "bcIORB.h"
|
|
|
|
#include "nsHashtable.h"
|
|
|
|
#define BIG_HEADER 0x80
|
|
#define REQUEST 0x40
|
|
#define NEWTYPE 0x20
|
|
#define NEWOID 0x10
|
|
#define NEWTID 0x08
|
|
#define LONGMETHODID 0x04
|
|
#define IGNORECACHE 0x02
|
|
#define MOREFLAGS 0x01
|
|
|
|
#define MUSTREPLY 0x80
|
|
#define SYNCHRONOUSE 0x40
|
|
|
|
#define DIR_MID 0x40
|
|
#define EXCEPTION 0x20
|
|
|
|
#define INTERFACE 22
|
|
#define INTERFACE_STRING "com.sun.star.uno.XInterface"
|
|
|
|
|
|
class urpManager {
|
|
|
|
public:
|
|
urpManager(PRBool IsClient, bcIORB *orb, urpConnection* connection);
|
|
~urpManager();
|
|
void SendUrpRequest(bcOID oid, bcIID iid,
|
|
PRUint16 methodIndex,
|
|
nsIInterfaceInfo* interfaceInfo,
|
|
bcICall *call,
|
|
PRUint32 paramCount, const nsXPTMethodInfo* info);
|
|
nsresult ReadMessage(urpConnection* conn, PRBool ic);
|
|
nsresult SetCall(bcICall* call, PRMonitor *m);
|
|
private:
|
|
nsHashtable* connTable;
|
|
bcIORB *broker;
|
|
urpConnection* connection;
|
|
PRMonitor *mon;
|
|
/* for ReadReply */
|
|
bcICall* call;
|
|
PRUint32 paramCount;
|
|
nsXPTMethodInfo* info;
|
|
bcMID mid;
|
|
nsIInterfaceInfo *interfaceInfo;
|
|
void TransformMethodIDAndIID();
|
|
nsresult ReadReply(urpPacket* message, char header,
|
|
bcICall* call, PRUint32 paramCount, const nsXPTMethodInfo *info, nsIInterfaceInfo *interfaceInfo, PRUint16 methodIndex);
|
|
nsresult ReadLongRequest(char header, urpPacket* message);
|
|
nsresult ReadShortRequest(char header, urpPacket* message);
|
|
nsresult SendReply(bcTID tid, bcICall* call, PRUint32 paramCount,
|
|
const nsXPTMethodInfo* info,
|
|
nsIInterfaceInfo *interfaceInfo, PRUint16 methodIndex);
|
|
};
|
|
|
|
#endif
|