// DeviceBus.cpp : 定义 DLL 应用程序的导出函数。 // #include "DeviceBus.h" /* DeviceBUS::DeviceBUS(void) { m_Connected = false; m_pPacketReceiveThread = NULL; m_pP2PModule = NULL; } DeviceBUS::~DeviceBUS(void) { if (IsConnected()) { DisConnect(); } } void DeviceBUS::SetReceiveThread(Work_Thread *pThread) { m_pPacketReceiveThread = pThread; } bool DeviceBUS::Connect(ResDataObject &connection) { return false; } void DeviceBUS::Quit() { } void DeviceBUS::InitP2P(const char *pszIp, const char *pszLocalBusId, bool AsServer) { } void DeviceBUS::DisConnect() { } bool DeviceBUS::IsConnected() { return m_Connected; } void DeviceBUS::SetLogPath(const char *pPath) { } bool DeviceBUS::SendSMPacket(const char *pTargetID, const char *pContext, unsigned long long nShareMemID) { return false; } bool DeviceBUS::SendPacket(const char *pTargetID, const char *pContext, const char *pBlock, DWORD BlockSize) { return false; } bool DeviceBUS::SendRawPacket(const char *pTargetID, const char *pContext, DWORD ChannelId) { return false; } void DeviceBUS::PacketArrived(ResDataObject &packet) { if (m_pPacketReceiveThread) { m_pPacketReceiveThread->PushReqDataObject(packet); } else { //put error log here } } void DeviceBUS::BlobDataArrived(const char *pMsg, unsigned char *pBlockData, DWORD BlockDataLen) { } void DeviceBUS::UnRegistThread(DWORD Tid) { } */