Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseBridge ¶
* close bridge_hub of process
- @bd:bridge_descriptor,该进程打开的bridge描述符
* @return -1:failed 0:success
func OpenBridge ¶
* open bridge * @name_space:系统的命名空间 * @proc_id:服务进程的全局ID * @slogd:slog的描述句柄 * @return: * -1:failed * >=0:SUCCESS 返回bridge句柄描述符
func RecvBridge ¶
* recv_from_bridge * @bd:bridge_descriptor,该进程打开的bridge描述符 * @recv_buff:接收数据缓冲区 * @recv_len:接收缓冲区长度 * @sender:sender proc_id if not null * @drop_time: >=0丢弃发送时间超过drop_time(秒)的包; -1:不丢弃任何包 * @return: * -1:错误 * -2:接收缓冲区空 * -3:接收数据超出包长 * else:实际接收的长度
Types ¶
type Proc ¶
//////////////SPEC PROC STRUCT//////////////
func Open ¶
* 打开本进程的通信 * @name_space:系统的命名空间 * @proc_id:服务进程的全局ID * @return: * -1:failed * >=0:SUCCESS 返回bridge句柄描述符
func (*Proc) Recv ¶
* 接收其他进程的数据 * @recv_buff:接收数据缓冲区 * @recv_len:接收缓冲区长度 * @sender:发送的进程ID * @return: * -1:错误 * -2:接收缓冲区空 * -3:接收数据超出包长 * else:实际接收的长度