示例#1
0
文件: rpc.cpp 项目: frmeier/pxar
void rpcMessage::Send(CRpcIo &rpc_io)
{
	rpc_io.Write(&m_type, 1);
	rpc_io.Write(&m_cmd,  2);
	rpc_io.Write(&m_size, 1);
	if (m_size) rpc_io.Write(m_par, m_size);
}
示例#2
0
文件: rpc.cpp 项目: frmeier/pxar
void rpc_SendRaw(CRpcIo &rpc_io, const void *x, uint32_t size)
{
	uint8_t value = RPC_TYPE_DTB_DATA;
	rpc_io.Write(&value, 1);
	rpc_io.Write(&size, 3);
	if (size) rpc_io.Write(x, size);
//	printf("Send Data [%i]\n", int(size));
}