gdpbad.cpp
来自「Symbian mobile os C++ GSDP编程」· C++ 代码 · 共 66 行
CPP
66 行
// gdpbad.cpp
//
// Copyright (c) 2000 Symbian Ltd. All rights reserved.
//
#include "gdpbad.h"
#include <ImplementationProxy.h>
#include <ecom.h>
// game datagram protocol - evil test one
CGdpEvil::CGdpEvil()
{
}
CGdpEvil::~CGdpEvil()
{
REComSession::DestroyedImplementation(iDtor_ID_Key);
}
void CGdpEvil::OpenL(MGdpPacketHandler* /*aHandler*/) // start up, and set handler for packets received
{
}
void CGdpEvil::SendL(const TDesC8& /*aToAddress*/, const TDesC8& /*aData*/) // send packet
{
}
void CGdpEvil::ReceiveAllL() // do a pull if necessary
{
}
TInt CGdpEvil::GetMaxPacketLength() const
{
return 0;
}
TInt CGdpEvil::IsNetworked() const
{
return EFalse;
}
CGdpSession* CGdpEvil::NewL()
{
User::Leave(KErrNotSupported);
return 0;
}
// Define the interface UIDs
const TImplementationProxy ImplementationTable[] =
{
{{0x101F8B56}, CGdpEvil::NewL},
};
EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
{
aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);
return ImplementationTable;
}
TInt E32Dll(TDllReason)
{
return KErrNone;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?