?? gdpqueue.h
字號:
// gdpqueue.h
//
// Copyright (c) 2000 Symbian Ltd. All rights reserved.
//
#ifndef __GDPQUEUE_H__
#define __GDPQUEUE_H__
#include <gdp.h>
// game datagram protocol - loopback with queueing
/*
class CGdpQueue
*/
class CGdpQueue : public CGdpSession
{
public:
CGdpQueue();
void ConstructL();
~CGdpQueue();
static CGdpSession* NewL();
// from MGdpSession
void OpenL(MGdpPacketHandler* aHandler); // start up, and set handler for packets received
void SendL(const TDesC8& aToAddress, const TDesC8& aData); // send packet
TInt ReceiveAll(); // do a pull if necessary
TInt GetMaxPacketLength() const; // max packet length
TBool IsNetworked() const; // if not point-to-point, then preserves addresses
void FinishSend();
private:
MGdpPacketHandler* iHandler;
TBuf8<0x20> iAddress;
TBuf8<255> iData;
CTimer* iTimer;
};
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -