PSOM
来源:互联网 发布:湖南云计算 编辑:程序博客网 时间:2024/05/29 10:42
Message type:
1. Record message(message type+message body);
- Close (message type=0x00)
- SetChannel (0x04)
- Break(0x06)
- RpcMessage(0x16)
- RPCOpen(0x37): The record body MUST include the PSOM channel identifier, which is an unsigned 32-bit integer(channel 0), and a specialConnMgr distributed object.
2. PSOM operation channel message;
PSOM channel messages represent a PSOM operation, which is an action to take or method to call that involves
a particular distributed object.
When a distributed object is first connected, it MUST be assigned a uniqueproxy identifier that is understood by the server (2)
and client. (Proxy identifier 用来区分DO). 一方为自己定义一个ProxyId, 为一个大于0的整数,发送连接请求给另一方,另一方
接收后为自己设定的ProxyId为接收的ProxyId的负数。
- OpenClose(0x86)
- Connect/Disconnect Child(0x84): 父DO可以连接或者断开子DO对象。ConnMgr和Meeting的连接是隐式建立的,其它DO的连接需要显式建立。
- RPC message: The RPC message type indicates the message is meant to call a given interface method with a pre-defined set of parameters.