12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- // 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)
- {
- }
- */
|